User Permissions

  • I am trying to create a media server and NAS and don't exactly know what I'm doing. I setup my user with no issues and can access my server through SMB on my windows 11 pc and SSH. The problem I'm having is that any new user that I create gets a permission denied error anywhere I try to login. Smb says permission denied and SSH says...


    "Could not chdir to home directory /home/(user): Permission denied

    /bin/bash: Permission denied

    Connection to mediaserver closed."


    the auth.log says...


    "Accepted password for (user) from ::1 port 40872 ssh2

    pam_unix(sshd:session): session opened for user (user)(uid=1002) by (uid=0)

    error: /dev/pts/2: Permission denied

    Received disconnect from ::1 port 40872:11: disconnected by user

    pam_unix(sshd:session): session closed for user (user)"


    The new users have the same permissions as my main user that actually works, but refuses to login. Any ideas would be greatly appreciated.

  • KM0201

    Approved the thread.
    • Official Post

    Did you put the second user in the ssh group?


    Also I'd recommend setting your shell to /bin/bash if you haven't already

  • Did you put the second user in the ssh group?


    Also I'd recommend setting your shell to /bin/bash if you haven't already

    I put the user in groups sudo, ssh, and users already and no change. The shell is also already in /bin/bash

  • am trying to create a media server and NAS and don't exactly know what I'm doing.

    I put the user in groups sudo, ssh, and users already and no change. The shell is also already in /bin/bash

    If you are going to put every user on those groups (especially, SUDO) then you might as well only have and use root user.


    This is a bad idea.

    • Official Post

    If you are going to put every user on those groups (especially, SUDO) then you might as well only have and use root user.


    This is a bad idea.

    I disagree with this. I'd never put a regular user in root group (although I do agree it's a bad idea). I'm not a fan of sudo users, and frankly don't use them, but putting them in the root group seems like a way worse idea.

  • I disagree with this. I'd never put a regular user in root group (although I do agree it's a bad idea). I'm not a fan of sudo users, and frankly don't use them, but putting them in the root group seems like a way worse idea.

    I think you didn't understood my meaning:

    What I mean is, if all users have SUDO group, they have root capabilities.

    I didn't meant adding them to Root group.

    • Official Post

    I think you didn't understood my meaning:

    What I mean is, if all users have SUDO group, they have root capabilities.

    I didn't meant adding them to Root group.

    LOL, copy that...

    I honestly was like, "WTF is he thinking suggesting that"..lol. Definitely didn't make sense.


    I see what you're saying now.

  • I think you didn't understood my meaning:

    What I mean is, if all users have SUDO group, they have root capabilities.

    I didn't meant adding them to Root group.

    I should have been more clear as to why I added every user to sudo. The only difference between my user and others was that mine was in sudo. Purely as a way to troubleshoot permissions, I wanted to make sure that the new users had the same permissions as my user (the one that can actually login). It was never my intention on keeping them in the group.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!