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!!! |
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 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 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. |
All times are GMT -5. The time now is 06:23 AM. |