Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I set the home directory to be /home/%h #150

Open
aratar79 opened this issue Jul 16, 2024 · 0 comments
Open

How can I set the home directory to be /home/%h #150

aratar79 opened this issue Jul 16, 2024 · 0 comments

Comments

@aratar79
Copy link

aratar79 commented Jul 16, 2024

I have tried in several ways to set the home directory as the start path of each user and the cases are, either it has no write permissions, which I can correct, but every time it is logged in it is rewritten or it does not log in at all.

    "Global": {
        "Chroot": {
            "Directory": "%h",
            "StartPath": ""
        },
        "Directories": []
    },
    "Users": [
        {
            "Username": "Agent-11023",
            "Password": "Password",
            "UID": 1001,
            "GID": 1001,
            "Directories": [
                {
                    "Path": "/home/Agent-11023",
                    "WritePermission": true
                }
            ]
        },
        {
            "Username": "Agent-11972",
            "Password": "Password",
            "UID": 1002,
            "GID": 1002,
            "Directories": [
                {
                    "Path": "/home/Agent-11972",
                    "WritePermission": true
                }
            ]
        },
        {
            "Username": "Agent-33649",
            "Password": "Password",
            "UID": 1003,
            "GID": 1003,
            "Directories": [
                {
                    "Path": "/home/Agent-33649",
                    "WritePermission": true
                }
            ]
        }
    ]
}```
How can I make it work? Any help?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant