I want to create a ftp user on my ubuntu server, and lock the user to a specific folder to read/write to.
I read I use the /usr/sbin/useradd but I don't see how I set the password?
thanks in advance
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
This means the user can not leave their home directory. There are multiple ways to create a user. By default,
adduser will prompt you for a password and directory info.
However, you should consider sftp, with openssh-server, instead. There are ways to secure FTP, e.g. tunneling it over SSH or SSL. However, SFTP was originally designed with security in mind.