Re: [Ilugc] Multiple passwords for root user in Linux

2012-03-20 Thread Version Control Buddy
> I believe, what you are looking for is sudo. Check out the following
> manual pages,
>
> man sudo
> man sudoers
>
> See EXAMPLES section to get a quick idea. As the name goes, if
> authorized, any user can gain superuser privileges through sudo. So, in
> effect, two or more users can login as root using their own passwords.
>

This solution should work best for OP. Also password less ssh with
different password phrase
for different machines is something you can consider(although it does not
exactly match your
description).

http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html
http://forums.freebsd.org/showthread.php?t=1508
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Multiple passwords for root user in Linux

2012-03-20 Thread Raja Subramanian
On Tue, Mar 20, 2012 at 2:05 PM, Raman.P  wrote:
> 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'.

Unix admin tradition is to call this account as "toor" - root backwards.

A better solution to the OP's problem is sudo as mentioned by others.

- Raja
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Multiple passwords for root user in Linux

2012-03-20 Thread 0
> 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.

I believe, what you are looking for is sudo. Check out the following 
manual pages,

man sudo
man sudoers

See EXAMPLES section to get a quick idea. As the name goes, if 
authorized, any user can gain superuser privileges through sudo. So, in 
effect, two or more users can login as root using their own passwords.

-- 
0
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Multiple passwords for root user in Linux

2012-03-20 Thread Raman.P


--- On Tue, 20/3/12, Ganesh Kumar  wrote:

> From: Ganesh Kumar 
> Subject: [Ilugc] Multiple passwords for root user in Linux
> To: "ILUG-C" , vg...@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/

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


Re: [Ilugc] Multiple passwords for root user in Linux

2012-03-20 Thread prasannatsmkumar
On Tue, Mar 20, 2012 at 1:22 PM, Ganesh Kumar  wrote:

> 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.
> Did I learn something today? If not, I wasted it.
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>


Not possible to have 2 passwords for a same account. Passwords will be
encrypted and stored in /etc/shadow file in Linux. You can see the
encrypted password there.

Hope This Helps,
Prasanna Kumar
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Multiple passwords for root user in Linux

2012-03-20 Thread Ganesh Kumar
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.
Did I learn something today? If not, I wasted it.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc