D
D
diman552017-07-02 20:04:49
linux
diman55, 2017-07-02 20:04:49

Why does pure-ftpd put the root user?

Hello. I have a script that creates FTP users and gives them a group, rights. Recently I manually added a new user with the following commands:
sudo groupadd 100
sudo useradd u100 -u 100
sudo chown -R u100:100 /home/100
And restarted pure-ftpd itself.
And now all new FTP accounts are created with the root user. Please tell me what's wrong)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ernest Fayzullin, 2017-07-02
@ernesto77

maybe you need to run the script on behalf of useradd

D
diman55, 2017-07-04
@diman55

Problem solved.
I specified in the script to create a user with id 10500 and everything worked (it was 10000)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question