LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-12-2005, 10:12 AM   #1
macgyver007
Member
 
Registered: Oct 2004
Location: Eastern US
Posts: 38

Rep: Reputation: 15
Setting User Permissions


Hey guys,

I have a mandrake 10.1 box at home and I run suse 9.2 on my laptop but this is a question for really all distros. I primarily setup the mandrake box at home to share files, run apache and ssh. I know you're not supposed to log in with ssh using root but I use root to start/stop services.

I was wondering if there was a way I could setup user permissions on a certain user to start/stop services, like if I don't want ssh to run.......I am used to windwos and their various user settings, power users, administrors, domain admins etc etc. Any suggestions?
 
Old 04-12-2005, 10:24 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Not sure if I understand.

You would like to have a user to be able to start/stop services from a remote machine? I guess you could use sudo (see 'man sudo'), but still you need a terminal.

Why would you like to avoid using ssh? There is (to my knowledge) no safer alternative
 
Old 04-12-2005, 10:46 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You could ssh to your server using a normal user login, then su to root when you need to start any services.
 
Old 04-12-2005, 11:21 AM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
SSH is a must, and sudo is the perfect tool. Once sudo is installed, users can sign in with their regular username and password. Then when they want to run a command as root, they just stick sudo in front of it. The machine will ask them for their password (not root's), and execute. With the config file you can set what commands are allowed to be run under sudo. It is great because you can use it to allow root level access without giving out your root password. It is great, and I strongly suggest using it.

Peace,
JimBass
 
  


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
Problems setting user permissions kyro_02 Linux - Newbie 4 07-08-2005 12:27 PM
Setting user permissions PeteWieland Linux - Newbie 2 04-16-2005 07:35 AM
Setting user network permissions beforemath Linux - Networking 2 02-28-2005 04:53 PM
Setting default permissions for user loadedmind Slackware 3 11-05-2003 04:24 PM
::Setting user permissions:: ::Newbie question:: XxAndyxX Linux - Software 3 03-20-2003 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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