LinuxQuestions.org
Visit Jeremy's Blog.
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 12-15-2005, 02:23 AM   #1
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Rep: Reputation: 15
passing root..


Im paying someone to monitor my server and control anything I request and I want to make sure hes not going to try and fool me or anything. They seem like a very cool people but thats all how fruads start, nice people then boom they hit you with a bat.

What I want to do?

How can I create an account on my server and give them root access

Code:
// or if this is even possible
Create root access, but have it so their not able to change the root password and view files.

I just really want to be able to create another user and give that user root access and then give it to the person how do I do this.

Don't you add users like

useradd <persons name>
ex: useradd Shlouk

and to give them root access is like
rootacs user Shlouk

I don't know someone please help me out here.

Baghdad
Best " " around..
 
Old 12-15-2005, 05:00 AM   #2
dylants
Member
 
Registered: Oct 2003
Location: Bath UK
Distribution: RedHat 7,9 RHEL 2.1-4 Suse 9.1, 9.2, Ubuntu, Centos 3-4, Fedora 3-5
Posts: 44

Rep: Reputation: 15
sudo is your friend

the file /etc/sudoers can take values that allow other users specific or general access to privileged commands.
Unfortunately the man page is a little hard to follow - I learnt from browsing examples via google. Here's a couple to start you off:

For instance I am running backuppc on a server. That server logs into a client as user backuppc. The user backuppc needs to use rsync, so I have added the following line to my /etc/sudoers file:

backuppc ALL=NOPASSWD: /usr/bin/rsync

which means that the user backuppc can access the /usr/bin/rsync command without being asked for a password.

To allow backuppc full access to all commands, try:

backuppc ALL=(ALL) ALL

they will be asked for their own password when they try to access a privileged command.

This last command unfortunately will give them access to the passwd command, so they would be able to change the root passwd. I believe that there is some way to specify exceptions to the command, but I have never used it - google for examples, there should be plenty out there!

HTH

Dylan
 
Old 12-16-2005, 05:13 PM   #3
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
where can I get this?
 
Old 12-17-2005, 03:37 AM   #4
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
where can i get this?
 
Old 12-17-2005, 02:06 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Your distro should have provided a sudo package. Since you haven't bothered to tell us which distro you're using, we can't give you exact installation directions.
 
  


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
Passing by steve007 Linux - Newbie 3 07-22-2005 06:06 AM
passing passing variable in Java as reference djgerbavore Programming 3 11-10-2004 03:18 PM
prompt for root password and passing to a program ludeKing Programming 4 08-23-2004 09:55 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
accepting root passwd from UI and passing it to a shell script to extract a rpm rameshvl Linux - Software 4 03-18-2003 01:11 AM


All times are GMT -5. The time now is 06:27 AM.

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