0

I added a user called 'kma' to root group. Then I changed permission of /root/ to 770. Which should give the user read, write and execute access since I added him to the root group. But it still gives permission denied error. What am I doing wrong here?

Commands I executed:

sudo adduser kma root
sudo chmod 770 /root/
cd /root/ <------- Gives permission error
1
  • Have you started a new login session for user kma? the new group membership will not take effect in the current session Commented Jul 11, 2020 at 22:36

1 Answer 1

1

You probably need to open a new shell. The current shell won't automatically have the new group. Log out and back in, or run exec bash.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.