Score:0

pure-ftpd How to create a non-shell user?

mu flag

I did this to install pure-ftpd and create a real but non-shell user called ftp

sudo su -
apt-get install pure-ftpd
vi /etc/pure-ftpd/conf/PAMAuthentication
> I changed yes to no
cd /etc/pure-ftpd/auth
ln -s /etc/pure-ftpd/conf/PureDB 75PureDB
useradd -d /dev/null -g www-data -s /bin/false ftp

Then I tried to create a virtual user that must be able to login but without a shell

pure-pw useradd realtebo -u ftp -g www-data -d /var/sftp/realtebo

But I obtain this error

You must give (non-root) uid and gid

I already created an user of this type in the past, but probably I am missing a step.

What should I do to create a 'virtual' user for sftp ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.