2

I'm using Ubuntu 16.04 and want to create a shared directory, but after creating it, I'm not able to create files in it even if I'm member of the group.

Here is what I did and what I got:

enter image description here

It works when running sudo su instead of sudo, but normally I should have the required permissions.

What is the source of the issue?

Yaron
  • 13,453
00-Yalo
  • 155

1 Answers1

5

Creating a file in that directory required that you'll be either root or in group music.

It seems like the reason you failed to create the file, is that your user isn't included in group music.

  • You can check that by running id command - which will show the groups you are member in (thanks for @ridgy comment)

  • As explained here you can add your user to a group using:

    sudo usermod -a -G groupName userName
    

Note: You might need to logout/login in order to update the group list of your user.

Yaron
  • 13,453