LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2008, 04:38 PM   #1
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Rep: Reputation: 15
user rights


What kind of rights does a user need to be able to start and stop services on Linux?
 
Old 02-18-2008, 05:12 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Well root is the boss,and for user to have some permitions you have to give him (as root) that wrights for any specific action you want.

Last edited by alan_ri; 02-19-2008 at 11:22 AM.
 
Old 02-18-2008, 07:13 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If it's just you personally, login as root as mentioned. (use the 'su -' cmd)
If you want others to be able to run only specified cmds and nothing else, look into the sudo utility.
 
Old 02-18-2008, 08:15 PM   #4
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
One should always have a backup admin on a system. I want to let someone else admin the system for me such as restarting and making changes to the samba shares. I don't want to give the the root password. Surely I can set up a user who can admin the system w/o having to risk giving the root password to someone.
 
Old 02-18-2008, 08:27 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Create a regular account for the user and make the user a member of the "wheel" group. You can configure sudo to use the user's own password instead of root's. On some systems like Fedora Core, that is the way sudo is configured already.
If you only want temporary help, you can disable that account after he or she is finished.
 
Old 02-19-2008, 08:25 AM   #6
cj4331
Member
 
Registered: Feb 2008
Posts: 30

Original Poster
Rep: Reputation: 15
So there is no way to set up a user that can do things like restart samba on a linux system unless I install sudo? I should have noted I'm using RedHat.
 
Old 02-20-2008, 11:43 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You could look into "policy kit". However, using sudo would be much easier. In Linux, you can't have suid scripts.
If your version of Red Hat doesn't use "sudo" then it is so old you should update immediately.
 
  


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
tomcat rights to user Raakh Linux - Newbie 1 07-21-2007 05:20 PM
User rights metallica1973 Linux - Software 8 07-29-2006 12:51 PM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 04:40 AM
User rights rcoman Linux - Networking 2 04-21-2003 01:56 PM
temporary given user rights memnoch Linux - Security 1 08-29-2001 04:41 AM


All times are GMT -5. The time now is 02:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration