You are not logged in.

#1 2005-02-16 14:35:29

vinyl
Member
Registered: 2004-07-06
Posts: 33

[adding user] User without a shell

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

Offline

#2 2005-02-16 14:56:22

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [adding user] User without a shell

I believe you should set its shell as /bin/false :-)

Offline

#3 2005-02-16 15:07:45

kth5
Member
Registered: 2004-04-29
Posts: 655
Website

Re: [adding user] User without a shell

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

Offline

#4 2005-09-12 19:26:47

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: [adding user] User without a shell

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.

Offline

Board footer

Powered by FluxBB