LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-12-2004, 01:57 PM   #1
dee3lmo
LQ Newbie
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Slackware 10.0
Posts: 9

Rep: Reputation: 0
Admin user


Hi,

I want to create a new user for maintenance purposes that I can use instead of the root user. This user can inspect log files execute scripts, etc...
How can I create this user and what rights should I give the user...?

Also, a long time ago I read some post telling that some services must be started as non root user, but how is it possible to start some services as not root at system boot? And which services should I start as non root user?

I ask for this because I can't find the post...


thanx,
dee3lmo
 
Old 07-12-2004, 04:07 PM   #2
Ztyx
Member
 
Registered: Dec 2001
Location: Stockholm, Sweden
Distribution: Ubuntu, Kubuntu and Debian
Posts: 338

Rep: Reputation: 30
Re: Admin user

Quote:
Originally posted by dee3lmo

...How can I create this user and what rights should I give the user...?
If you would like to give a plain user some admin rights I would suggest you look at the sudo command. For the user you are talking about I would suggest you give that user exactly as much rights as it needs and no more. You shall, as much you can, avoid to have multiple administrator, and since I'm quite sure your user will not do ALL administration just change the appropriate files so that they can be read by your new (fake-)admin user.

For example you could create a group called "log", and add just read rights for that group recursive in /var/log.

Quote:

Also, a long time ago I read some post telling that some services must be started as non root user, but how is it possible to start some services as not root at system boot? And which services should I start as non root user?
I would suggest you have a look in /etc/init.d, this is the directory where scripts which are run at boot are, look at them - they are normally plain bash-scripts. Also check man init.

Also you can use the sudo command to run a command as a different user. If you are root you can do a
Code:
# sudo -u plain_user echo "This echo-command is run as the plain_user and not as root"
I hope this helps.

/Jens

Last edited by Ztyx; 07-12-2004 at 04:09 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
php user admin whysyn Programming 4 10-21-2005 11:58 AM
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 07:55 AM
User admin. How to change a user... Pug405 Linux - General 3 04-09-2004 01:33 AM
TCL/TK User Admin liguorir Linux - Software 0 03-31-2004 03:22 PM
Admin user with Netatalk chrisk5527 Linux - Software 0 10-08-2003 12:26 PM

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

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