A
A
Andrey Majidov2018-03-15 16:23:15
Access rights
Andrey Majidov, 2018-03-15 16:23:15

How to give access to a folder to a group of users?

Hello. I need to give a person access to one of my folders on Ubuntu (VPS).
I created a group, created a user, added the user to this group, added the group to the folder.
When authorizing on behalf of the created user, I try to cd into this folder: Outputs: I did not add a group to the /root and /root/dir folders themselves. Maybe this is the issue? I need to give access to target_dir. How to be?
$ cd /root/dir/target_dir
-sh: 7: cd: can't cd to /root/dir/target_dir

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devalone, 2018-03-15
@Famence

chown :GROUP_NAME DIR_NAME

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question