--- On Tue, 20/3/12, Ganesh Kumar <[email protected]> wrote:

> From: Ganesh Kumar <[email protected]>
> Subject: [Ilugc] Multiple passwords for root user in Linux
> To: "ILUG-C" <[email protected]>, [email protected]
> Date: Tuesday, 20 March, 2012, 1:22 PM
> HI Guys,
> 
> Anybody have seen two passwords working for the root user in
> a server to
> access with ssh.
> Is it possible to have multiple passwords for a user in any
> system. please
> guide me.
> 
> -Ganesh.


Multiple users with root privilege can exists in a system. However there will 
be only one user name 'root'. It is not 'root' that determines the privileges , 
but it is the uid in /etc/passwd that determines. You can have multiple users 
with root privilege by doing following steps

1. Copy the line containing root user information in /etc/passwd into a new 
line and change the name 'root' some thing else say 'root1'.
2. Copy the line containing root in /etc/shadow into a new line and change name 
'root' into 'root1'

3.Now you can login as root1 and get all root privileges. You can change 
password for this user.

Raman.P
blog:http://ramanchennai.wordpress.com/

_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to