cancel
Showing results for 
Search instead for 
Did you mean: 

User login disabling.

SR Rao
Advisor

User login disabling.

How can I disable the login for a particular user (i.e. he should not be able to connect to the server), but still let him do ftp on that machine?
7 REPLIES
Michael Schulte zur Sur
Honored Contributor

Re: User login disabling.

Hi,

put exit into the .profile

greetings,

Michael
SR Rao
Advisor

Re: User login disabling.

Hi Micheal,

That was smart.. really smart... But I was just wondering if we have some standard procedure or method to do that.

Greetings,

Harsha
BIJU P K
Occasional Contributor

Re: User login disabling.

if you want to disable all the non-root login without changing profiles try this..

login to root
#cd /etc
#touch nologin

if u want to enable the login after issuing above command

#cd /etc
#rm nologin

Regards
Biju
Hamel_2
Occasional Advisor

Re: User login disabling.

Change his login shell to /bin/true with chsh command.
Govind_3
Regular Advisor

Re: User login disabling.

The Easist way We follow to achieve this is put /bin/false in the users login shell. He would then be able to do FTP but not telnet
-Regards
Govind
SR Rao
Advisor

Re: User login disabling.

Thanks, but have tried that too, I am not able to ftp after putting /bin/false in the shell for the user...

Keep pouring, maybe we will come up with something, if Tru64 has that option that is!
Michael Schulte zur Sur
Honored Contributor

Re: User login disabling.

/bin/false
is false ! ;-)

That's
/bin/true
is true!

Michael