LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2004, 01:02 PM   #1
ShakyJake
Member
 
Registered: Apr 2003
Location: USA
Distribution: Gentoo
Posts: 55

Rep: Reputation: 15
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.
 
Old 06-18-2004, 01:08 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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,
 
Old 06-18-2004, 01:12 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving root privileges to another user BlackJackal Mandriva 5 10-19-2005 02:03 PM
Root privileges for user ar1 Linux - Security 2 01-07-2005 10:33 PM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 05:27 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 05:41 PM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 10:38 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration