I
I
Igor Gunkin2019-08-21 16:38:35
linux
Igor Gunkin, 2019-08-21 16:38:35

For some reason I can not create a user for the folder, what could be the reason?

I create the owner user1001:1000 for the /teh/users folder with the command: chown user1001:1000 /teh/users/1001;
Gives an error: chown: invalid user: "user1001:1000"
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-08-21
@q2digger

it is necessary to specify either username or uid.
i.e.
chown user:user /path/to/folder
edit.
a. I understand, you have such a direct user, right? user1001 ?
OK. let's try like this.
chown user1001:user1001 /folder/

S
Saboteur, 2019-08-21
@saboteur_kiev

chown: invalid user: "user1001:1000"
Well, it tells you that the user user1001 is not in the system.
what users are in /etc/passwd?
Maybe they forgot to create the user itself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question