[Ilugc] Multiple passwords for root user in Linux
- From: raamanp@xxxxxxxxxxx (Raman.P)
- Date: Tue, 20 Mar 2012 16:35:49 +0800 (SGT)
--- On Tue, 20/3/12, Ganesh Kumar <bugcy013 at gmail.com> wrote:
From: Ganesh Kumar <bugcy013 at gmail.com>
Subject: [Ilugc] Multiple passwords for root user in Linux
To: "ILUG-C" <ilugc at ae.iitm.ac.in>, vglug at googlegroups.com
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/
Other related posts: