How to give administrative previledges

Shawn Iverson shawn at nccsc.k12.in.us
Thu Apr 7 22:53:48 UTC 2005


On Tuesday, April 05, 2005 11:04 PM V P wrote:
>
>*Highly Unrecommended (FYI)* : You will have to manually add a 
>user to the /etc/passwd file with the UID/GID 0. So whenever 
>you login, you end up in root's home with root priviledges. 
>Even 'who' shows root as logged in.
>
>
>-- 

Not necessary. Use the following to set the UID to 0.  It is not good
security practice, however.  I have done it in the past so that selected
Active Directory administrator accounts become root when logging in via
Kerberos.

useradd -u 0 -o username

where username is the name of the user.  The -o option forces duplicate
UIDs.

BTW, it is also bad practice to edit /etc/passwd directly.  Use vipw
instead.

--

Shawn 




More information about the fedora-list mailing list