Thread: Starting ftp on a server via SSH ?
hi
have working ssh , ftp setup. want connect ssh server , start stop ftp server on demand. convenience thing me. reason asking ftp server gadmin-proftp(gui+server)will ask me root @ times run it?
i'm going package 'proftpd-basic' below suggestions. can substitute script if i've guessed wrong:
first make group starting , stopping ftp, , put users need able start or stop ftp server in group.
if running proftpd standalone server (it listens itself) need set following in /etc/sudoers allow in group use proftpd script:
then starting or stopping proftp not need full root access prepend 'sudo'. e.g.code:# ymmv, test before break sudo %ftpteam all=(all) passwd: /etc/init.d/proftpd start, \ /etc/init.d/proftpd status, \ /etc/init.d/proftpd force-start, \ /etc/init.d/proftpd stop, \ /etc/init.d/proftpd force-stop, \ /etc/init.d/proftpd reload, \ /etc/init.d/proftpd restart, \ /etc/init.d/proftpd force-reload, \ /etc/init.d/proftpd check-config
sudo /etc/init.d/proftpd restart
if using xinetd launch proftpd, solution more complex.
out of curiosity using ftp built-in sftp cannot provide?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [ubuntu] Starting ftp on a server via SSH ?
Ubuntu
Comments
Post a Comment