Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
|
|
10-11-2004, 11:18 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Location: Kerala, India
Distribution: Suse 9.1 Personal
Posts: 13
Rep:
|
root equivalent user...
Please help me in creating another user who will be equivalent to root.
I don't want to keep the uid as 0 for this user.some scripts/softwares recognize uid 0 as root and fails to customize themselves for that user.
This will come handy if you are sharing your pc with so many people who needs root access.
Is there a way ?
Thanks in advance...
|
|
|
10-11-2004, 11:20 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
most distributions make use of a "wheel" account, which has root permissions. just add your user to that group.
|
|
|
11-04-2004, 10:32 AM
|
#3
|
Member
Registered: Oct 2004
Location: Dhaka, Bangladesh
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36
Rep:
|
But those who are using RH linux, they can do it by a very simple trick. Just edit the file /etc/passwd
change the group and owner's ID to 0:0 ( to give it the authority of root )
and login to that account......
|
|
|
11-04-2004, 03:46 PM
|
#4
|
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028
Rep:
|
I would go with the wheel group, as it is designed for this, and is more controllable.
Also the uid is supposed to be unique. What would be the use else?
Last edited by ugge; 11-04-2004 at 03:47 PM.
|
|
|
11-08-2004, 04:15 PM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,415
|
Please help me in creating another user who will be equivalent to root.
Please don't.
I don't want to keep the uid as 0 for this user.
Then you must first understand what the root account is for. This account on most systems is for performing system tasks that cannot be performed as another user like for instance kernel (parameter), device, daemon and other configuration, installation, removal etc, etc. It is not an account any unprivileged users should have access to, bar a few, and only for performing those tasks.
some scripts/softwares recognize uid 0 as root and fails to customize themselves for that user.
Then there usually is a good reason for doing that. Don't try to circumvent "common sense" protection just because it seems easier at first glance. Use the offered "wheel" group sparsely, better assign some users root-owned tasks by using sudo if you must. Make sure you know what people are running. Allowing people unlimited root access will break any security measures unless you know what you're doing.
This will come handy if you are sharing your pc with so many people who needs root access.
Then, unless you show us good reasons *why* so many ppl need root access, I'd say there's a flaw in the thinking.
|
|
|
06-30-2006, 12:48 AM
|
#6
|
LQ Newbie
Registered: Jan 2006
Posts: 1
Rep:
|
how to add user which is equivalent to root not sudoers.conf in etc
All i want is CREATE USER WHICH IS EXCETLY EQUAL TO ROOT.I CAN DO ANYTHING WITH THAT USER.
/etc/sudoers.conf which i think is not that proper way. What i want is
USER=ROOT
what is the procedure Please let me know immediatly
WHITOUT HELP OF SUDO HOW WILL I ACCESS ROOT PRIVELEDGE
Last edited by sunil_chakraborty; 07-05-2006 at 02:44 AM.
|
|
|
06-30-2006, 10:23 AM
|
#7
|
Member
Registered: Mar 2004
Posts: 135
Rep:
|
Why give them root pri? You can use sudo and give them some privileges that they need.
|
|
|
07-01-2006, 04:43 AM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
You can edit the /etc/sudoers file with the "visudo" program. This makes it easy to run root commands without su'ing to root first. The file is well commented. Sometimes the change you want can be done by removing the "#" comment character.
Never log into KDE as root. You can use "kdesu" to start a program like a graphical text editor as root from your normal user's session.
Not having users and processes running as root is the main reason that Linux doesn't have the virus problem that plagues windows. Creating a user who is the equivalent of root would negate this advantage.
Last edited by jschiwal; 07-01-2006 at 04:46 AM.
|
|
|
All times are GMT -5. The time now is 04:05 PM.
|
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
|
|