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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-19-2002, 06:05 AM
|
#1
|
Member
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992
Rep:
|
normal user = super user
How do i create a user who has all the rights of a super user(root).
|
|
|
03-19-2002, 06:14 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
useradd username -g group1 -G group2,group3,group4
|
|
|
03-19-2002, 10:02 AM
|
#3
|
Member
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Rep:
|
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?
|
|
|
03-19-2002, 10:32 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-19-2002, 10:58 AM
|
#5
|
Member
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 09:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|