How do i add a user without a shell to Arch? I want the user only to access Samba shares, so a Linux login to a shell is not an option...
I thought it was /sbin/nologin but its not there...
Thanks in advance
I believe you should set its shell as /bin/false :-)
for a new user run adduser if you need a guide and enter /bin/false when prompted for a shell, object if asked to change it. it can point nowhere and will have the same effect as false.
or simply run:
useradd -g <primarygoup> -G <addgroup1>,<addgroup2> -s /bin/false <username>
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Sorry for kicking this topic, but I am really wondering why there's no nologin anymore? I am pretty confident that it used to be there some time. I liked nologin better. It printed a message 'Not allowed to login' or sth. But with /bin/false, when I try to su, it drops me back to my own username without any message whatsoever.