I thank everyone for their help.  It sounds like the UID & GID method is the
most comprehensive and gives the exact result that I was looking for.

Thanks all..

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Tibbetts, Ric
Sent: Wednesday, February 05, 2003 8:13 AM
To: [EMAIL PROTECTED]
Subject: Re: alias

Go the easy route.
Just create a second user with the same UID & GID as Fred, and using
Freds home directory.

The /etc/passwd would look something like:

foo:x:500:500:Foo User:/home/foo:/bin/bash
bar:x:500:500:Fred User:/home/foo:/bin/bash

  Then set the password to be the same as foo

Then when bar logs in, he is "really" foo, and uses foo's environment,
and home dirs.

NOTE: useradd will probably complain about doing this, as will nearly
all user creation tools. You'll need to add the password entries by
hand, then run the passwd command to sync the shadow passwords.

AND: YES, this can be done for a root account. We used to use what we
called a "root2" account for customers that needed root. We'd create a
shadow account like the one above. Then the passwords can be different,
and we could pull access if they acted up.

A Caviat:
If user "bar", decides to change his password, he MUST type it as:

    #> passwd bar

If he just enters
    #> passwd

He'll change the password for foo. Since they have the same UID, passwd
will change the first one it comes accross in /etc/passwd, so he needs
to be specific.

Easy.

cheers!

        Ric



Larry Brown wrote:
> Is it possible to create an alias for a user for login etc.  Example would
> be a user named fred in the Linux system.  I want to create an alias named
> coo for Fred.  So fred could log in as coo with the password Fred would
> normally use and log in.  He would look like the user coo but would have
all
> of the access rights and privileges of Fred.  Then as a follow-up, if it
is
> possible, is it possible to do this for root?
>
> Larry S. Brown
> Dimension Networks, Inc.
> (727) 723-8388
>
>
>
>
>



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to