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 11-04-2008, 01:10 PM   #1
dolceinter1
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Rep: Reputation: Disabled
How to give a user only ftp server privilege using sudo?


I'm the root I'm trying to give user Mike only ftp server rights using sudo.

For example, The user joe may only su to operator:

joe ALL = /usr/bin/su operator

Now, what to do to give user mike only ftp servers rights?


Please help!!!

Last edited by dolceinter1; 11-04-2008 at 02:33 PM.
 
Old 11-05-2008, 07:56 AM   #2
cygnal
LQ Newbie
 
Registered: May 2007
Distribution: Slackware/Debian
Posts: 26

Rep: Reputation: 15
You can either use the startup script in /etc/init.d:

Code:
mike ALL=/etc/init.d/NAME_OF_FTP_SCRIPT start, /etc/init.d/NAME_OF_FTP_SCRIPT stop, /etc/init.d/NAME_OF_FTP_SCRIPT restart
or, if you have Fedora or RedHat, you can give him permission to use the 'service' command:

Code:
mike ALL=/sbin/service FTP_SERVICE_NAME start, /sbin/service FTP_SERVICE_NAME stop, /sbin/service FTP_SERVICE_NAME restart, /sbin/service FTP_SERVICE_NAME status
The above will give him permission to start, stop, restart, and check the status of the ftp server daemon. FTP_SERVICE_NAME will be whatever the name of the ftp service is, depending on which one you have installed (most likely vsftpd). NAME_OF_FTP_SCRIPT will also likely change depending on which ftp service you have installed.

Remember to use the visudo command to edit the /etc/sudoers file, it locks the file from being accessed by anyone else while being edited and provides syntax error checking.
 
  


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
How do I give access to an ftp user to the var/www/html dir shootinstr8 Linux - Newbie 1 10-13-2006 03:32 AM
Dose anyone can give me a writable ftp server? NetSnake General 1 06-05-2006 11:02 AM
User privilege to partition atlaika Ubuntu 3 04-03-2006 01:44 PM
How do i give permissions on ftp server? Soujiro Linux - Software 1 04-22-2004 11:27 PM


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