0

I have a directory, under /srv:

drwxrwxr-x 3 minecraft minecraft 4096 Dec 30 06:23 minecraft

Owned by user minecraft, group minecraft. Group has read/write/search permissions. I have a user, shelvacu, that is part of the minecraft group:

$ groups shelvacu
shelvacu : shelvacu sudo minecraft

And, as shelvacu, I run mkdir /srv/minecraft/testdir:

$ mkdir /srv/minecraft/testdir
mkdir: cannot create directory ‘/srv/minecraft/testdir’: Permission denied

Why? The minecraft group has write permission on the directory, and shelvacu is part of the minecraft group. What am I missing?

strugee
  • 14,951
Shelvacu
  • 669

1 Answers1

1

First log in as the user shelvacu.

Then check your groups with id, so you don't add shelvacu to a group in one shell but try things inanother, not knowing about the change (as might happen with groups).

Change to /srv/minecraft, if that doesn't work, then you have not permissions on /srv (did make the /srv/minecraft as root for instance).

Now create directory with mkdir testdir. If that doesn't work, check the write permissions on current mount: mount | grep -F /srv (if that doesn't give results /srv is on /)

Zelda
  • 6,262
  • 1
  • 23
  • 28