M
M
Mysterion2018-05-17 20:32:27
linux
Mysterion, 2018-05-17 20:32:27

How to manage ProFTPd users?

Hello.
There is a need to create users in the system without shell access. Solved by specifying the /bin/false shell when creating in useradd with the -s switch

/usr/sbin/useradd -s /bin/false -m -d /home/sockets/socket1/server socket1

Thus, I create an FTP user with the home directory "/home/sockets/socket1/server", and in "/home/sockets/socket1" there are system files that he does not need to see, I do not give him access to them and he does not see.
Since I did not specify the password in the -p switch, the user will not be able to connect.
How can I disable FTP access for a user if I set a password, but I want him to be unable to connect using this password?
How to prevent the socket1 user from accessing via FTP (and all other accesses, respectively), if the shell is /bin/false anyway?
How to enable and disable FTP user?
Its removal is not suitable, because. under this user, the software is launched on the server from root in a chroot environment.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2018-05-18
@Mysterion

man usermod
-L, --lock lock account
-U, --unlock unlock account

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question