I have a directory, under /srv:drwxrwxr-x  3 minecraft minecraft 4096 Dec 30 06:23 minecraftOwned by user minecraft, group minecraft. Group has read/write/search permissions. I have a user, shelvacu, that is part of the minecraft group:$ groups shelvacushelvacu : shelvacu sudo minecraftAnd, as shelvacu, I run mkdir /srv/minecraft/testdir:$ mkdir /srv/minecraft/testdirmkdir: cannot create directory /srv/minecraft/testdir: Permission deniedWhy? The minecraft group has write permission on the directory, and shelvacu is part of the minecraft group. What am I missing?
Permissions not extended to user in minecraft group
permissions;files;group
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 /)