Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-15-2005, 01:23 AM   #1
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

// 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.

Best " " around..
Old 12-15-2005, 04:00 AM   #2
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!


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

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

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

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


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 05:06 AM
passing passing variable in Java as reference djgerbavore Programming 3 11-10-2004 02:18 PM
prompt for root password and passing to a program ludeKing Programming 4 08-23-2004 08:55 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04: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 12:11 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration