SUMMARY: user login question

From: Jim Langston <JLANGSTON_at_mail.mcg.edu>
Date: Wed May 03 2006 - 16:13:48 EDT
I received several emails from folks, but this email from Brad Morrison
is what i was looking for.  
 
We are a sudo shop, so sudo was already installed.  I just had to
modify the sudoers file with this information:
 
To set up user "joe" to sudo to psoft on ALL hosts, use: 

Cmnd_Alias        PSOFT=/usr/bin/su - psoft, /usr/bin/su psoft 
joe        ALL=PSOFT 
 
Then in the /etc/shadow file, I locked out the psoft account out buy
putting in a non-valid password.  
 
Thanks!!!

Cheers,

Jim

>>> "Jim Langston" <JLANGSTON@mail.mcg.edu> 5/3/2006 9:07:47 AM >>>

I have a question about preventing a user from logging in directly.  I
only want to be able to su - over to it from another account.  I know
that you can prevent root from logging in directly by setting up the
/dev/console setting in the /etc/default/login file, but is it
possible
to do this for a regular user?  

Cheers,

Jim
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed May 3 16:17:08 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:57 EST