I have created three users: - media, media1 and media2 I have added these users to group called Media.

than using chgrp i have modified group on two existing folders "Archive" and "Media".

Media group should have read/write/modify access to these two directories and sub directories.

at moment all directories are owned by Media group.

Directory is as follow :

# ls -ld
drwxrwsr-x    2 media1 Media 4096 Jul 26 12:22 Media/

but when user media2 tries to remove this directory or file or tries to create new file/folder under Archive or Media folder it throws error permission denied.

what could be wrong?


You are missing the "write" permission for the group.

chmod g+w Media/
chmod g+w Archive/

Should solve your problem.

For further information, see This tutorial

  • i have deleted the old one. because it was closed (duplicate) and added detailed info into this. Jul 26 '13 at 12:30
  • Then that's okay I guess. Happy to have helped you.
    – mveroone
    Jul 26 '13 at 12:33
  • drwxrwsr-x 2 media1 Media 4096 Jul 26 08:12 but user media2 error: Unable to create folder Permission denied. Jul 26 '13 at 12:41
  • @UsmanMasood I guess media2 is correctly in Media group ? (does groups tell so ?)
    – Levans
    Jul 26 '13 at 12:46
  • media1 : media-daemon Media media2 : Share Media both users belong to Media group. result of groups command. Jul 26 '13 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.