(04-25-2016, 06:28 AM)Me.B Wrote: users for ftp should only exist in sentora_proftpd and are not real system users.
M B
I have just manually added an FTP user using the SQL code in "sentora-core\modules\ftp_management\code\proftpd-mysql.php"
The code is as follows:
Code:
INSERT INTO ftpuser (id, userid, passwd, homedir, shell, count, accessed, modified) VALUES ('', :username, :password, :homedir, '/sbin/nologin', 0, '', '');
I used the following values:
id = '', userid = 'coolcybot_coolcybot', passwd = 'mypassword', homedir = '/public_html/coolcybot_servehttp_com', shell = '/sbin/nologin', count = 0, accessed = '0', modified = '0'
So the user account now exists in the database but I still cannot login.
Have I specified the wrong shell, is that why it doesn't work?
The uid and gid values in the database match the user and group id of my apache user which I think makes sense as this is the user and group of my public_html folder - /var/sentora/hostdata/coolcybot/public_html/coolcybot_servehttp_com.