LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-11-2004, 11:18 AM   #1
ksraju007
LQ Newbie
 
Registered: Oct 2004
Location: Kerala, India
Distribution: Suse 9.1 Personal
Posts: 13

Rep: Reputation: 0
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...
 
Old 10-11-2004, 11:20 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
most distributions make use of a "wheel" account, which has root permissions. just add your user to that group.
 
Old 11-04-2004, 10:32 AM   #3
aronnok
Member
 
Registered: Oct 2004
Location: Dhaka, Bangladesh
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36

Rep: Reputation: 15
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......
 
Old 11-04-2004, 03:46 PM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
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.
 
Old 11-08-2004, 04:15 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 06-30-2006, 12:48 AM   #6
sunil_chakraborty
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
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.
 
Old 06-30-2006, 10:23 AM   #7
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
Why give them root pri? You can use sudo and give them some privileges that they need.
 
Old 07-01-2006, 04:43 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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


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
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 10:59 AM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 09:51 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-08-2004 12:11 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:05 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
Open Source Consulting | Domain Registration