RE: How to give administrative previledges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux