LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-21-2007, 07:52 AM   #1
veeramani
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 15
Red face User Permission


hai,

Here is another one. I want to make a user , who can be able to do all the jobs an root can do(some exceptions can be there). How to set the rights/permissions for him.


Thanks in advance.

Last edited by veeramani; 03-21-2007 at 08:00 AM.
 
Old 03-21-2007, 08:17 AM   #2
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
Consider using sudo it's quite good for giving users some of the root privileges
 
Old 03-21-2007, 08:18 AM   #3
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
A very simple n fastest way is to change the user/group id of that user to "0". This will make him like root.
 
Old 03-21-2007, 08:44 AM   #4
veeramani
Member
 
Registered: Apr 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you avallach and mether

but mether is there any other way to do this??
 
Old 03-21-2007, 09:36 AM   #5
jimvin
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Hi,
I'd go with the earlier advice and use sudo to do this. If you explain a little more about what it is you're trying to do we might be able to offer some further advice.

Regards,
Jim
 
Old 03-22-2007, 12:04 AM   #6
veeramani
Member
 
Registered: Apr 2006
Posts: 33

Original Poster
Rep: Reputation: 15
I mean , If there is a root and his assistant root1.
i want to make root1 can do almost all of the jobs of root,ie., a user root1 will be given some rights to add/del/change user settings, managing services, configuring of server settings, monitoring etc.,,

what mether told is perfectly working. But it is dangerous., i mean , by doing this the user completely becomes a root, he can be able to change the root passwd too.
 
Old 03-22-2007, 02:17 AM   #7
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
So try my advice, you can easily set using visudo command... To give an user the permissions that really suit you.
 
Old 03-22-2007, 03:08 AM   #8
jimvin
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Hi,
The first thing you need to do is determine exactly what you want your non-root power user to be able to do. Only once you've got a tight specification for the limited powers you need to give this admin account can you successfully lock it down.

Once you've done that determine exactly how you are going to allow the user to do the jobs in hand. If you need to allow them to change all passwords other than root you might need to do some creative scripting or modify the passwd command. Consider using an existing administration tool that allows this kind of granular access control. I can't think of one for Linux off the top of my head, perhaps someone else can throw us a bone.

Jim
 
Old 03-22-2007, 12:30 PM   #9
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Look at the below links which will help you in undestanding more abt sudo.

http://kbase.redhat.com/faq/FAQ_80_3474.shtm

http://kbase.redhat.com/faq/FAQ_44_585.shtm

http://kbase.redhat.com/faq/FAQ_80_3754.shtm
 
Old 03-22-2007, 03:24 PM   #10
pileofrogs
LQ Newbie
 
Registered: Mar 2007
Location: Seattle
Distribution: CentOS, Fedora, Ubuntu
Posts: 17

Rep: Reputation: 0
Yeah, this is where unix permissions really fall down. You can't give a user root-ish permissions over X,Y and Z but not everything else. Hence we have complex crazy solutions like SELinux which let you impose a different security model, or stupid solutions like sharing the root password, or the imperfect but probably the most reasonable solution of using sudo.

Another option is to make the stuff you want your assistant to manage belong to a group, be group writable and make your assistant a member of that group. Of course, if it's adding/removing certain accounts but not all accounts, that's not going to work...

Last edited by pileofrogs; 03-22-2007 at 03:27 PM.
 
  


Reply



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
user permission sprabu Linux - Enterprise 1 11-08-2006 11:14 PM
User Permission kwtan Linux - Newbie 2 11-22-2005 10:32 PM
su permission as user slacking_karl Linux - Software 5 08-04-2003 10:11 PM
User permission cerberus Linux - General 1 05-19-2003 01:50 PM
user permission richie Linux - Newbie 1 05-02-2001 04:12 PM

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

All times are GMT -5. The time now is 06:20 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