LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-19-2002, 06:05 AM   #1
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Question normal user = super user


How do i create a user who has all the rights of a super user(root).
 
Old 03-19-2002, 06:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
useradd username -g group1 -G group2,group3,group4
 
Old 03-19-2002, 10:02 AM   #3
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
I think that should be:

useradd -u 0 -o -g root username

The only problem is the system will still see you as root instead of the new user since the entry for root falls first in /etc/passwd.

What exactly are you trying to accomplish? Why not just use root?
 
Old 03-19-2002, 10:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nah, my way is nicer. and it makes more sense to add the user to root as an additional group, rather that just using root as the main group. you should be able to create a normal user gid > 500 as a memerb of the root group, you'll get less error warnings and such lik as well i presume. not actually BEING root there might be a few things they couldn't do, if the group mask is not set on certain files. your way simply renames root to someone else, which i would guess could very easily screw a system over.
 
Old 03-19-2002, 10:58 AM   #5
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
Yeah, I know, thus the warning in my message. Actually I've tried it on other systems and it doesn't screw things up... all it does is allow you to have another name/password to become root, because once you login, the system still equates you to uid 0 and you just look like root. You don't even have the new username.

Just putting a user in the root group doesn't give him "all the rights of a super user(root)" as the poster requested. At most it gives permissions to some of roots files.

I have a hunch that sudo will accomplish what he's wanting, but until we know exactly what that is, there's no way to tell... maybe he wants to rlogin from another system as a regular user and become root on the Linux machine /shrug.

If he's wanting all of root's rights, why doesn't he just use root's account?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 08:25 PM
Super User Insanity aeuzent Ubuntu 5 09-10-2005 03:48 PM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-08-2004 12:11 AM
super user, mandrake 9.2 FF103 Mandriva 5 05-28-2004 11:38 AM
Super User boyinfrance Linux - Newbie 1 06-17-2002 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 AM.

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
Open Source Consulting | Domain Registration