LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Security permissions for passwd

[ILUG] Security permissions for passwd

Martin Feeney martin at tuatha.org
Tue Jun 20 14:29:06 IST 2000


On 20 Jun 00, at 14:56, Niall  O Broin wrote:

> god:x:0:0:root:/root:/bin/bash
> 
> instead of
> 
> root:x:0:0:root:/root:/bin/bash
> 
> 
> you can just do 
> 
> su god

That won't work as su will try to run a shell with the correct uid and 
crap out with a failure to retrieve authentication info.

Reboot into single user or sudo.  Trust me.  I had to figure this out 
myself a few months ago.  sudo will only work if you havent killed the 
line completely from /etc/passwd.  You can do sudo -u #0 vi /etc/passwd.

The reason sudo works is that it uses the current user's password and just 
runs a command while su tries to use the target user's info which is in a 
screwed state.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell