LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   User with root privileges (https://www.linuxquestions.org/questions/linux-newbie-8/user-with-root-privileges-195023/)

ShakyJake 06-18-2004 12:02 PM

User with root privileges
 
This will probably sound like a silly question and a "why would you want to do that?", but...

Is it possible to set up a new user account with all the privileges of "root"? Or, if possible, to change the login name itself of "root" to something else? Like a name of my choosing?

Thanks.

leonscape 06-18-2004 12:08 PM

Have a look at sudo.

The other way I can think of, is to create the new user, add it to all the groups, and change the path to include /sbin /usr/sbin.


Still this is a very bad idea, :tisk:

btmiller 06-18-2004 12:12 PM

Just add a new user with UID 0. In Unix, any user with UID 0 has root priviliges (just adding the user to all the groups is not enough, there are certain system functions that check for the 0 UID). As leonscape said though, this isn't a good idea in general.


All times are GMT -5. The time now is 06:58 PM.