Run a program under a different user/user disable

Hi

1) I created a new user in "passwd" and "shadow". I want now to run the "vsftpd"
under this new user. Is there a way to achive this ?
2) How can I enable/disable a user to make any form of login impossible (ftp
telnet or console) ?
3) Is there a way to allow only ftp connections to a certain user but
not telnet or console connections?

Best regards

Paolo Celani

Re: Run a program under a different user/user disable

1) This should work by setting the nopriv_user option in vsftpd.conf
2) Just replace /bin/sh with /bin/false (or something else which is not a shell) in /etc/passwd for this user. You can also use passwd -l to disable the account.
3) I cannot give a complete instructions, but this should be doable with virtual users in vsftpd.

Syndicate content