Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
i have deleted the old one. because it was closed (duplicate) and added detailed info into this. –  Usman Masood Jul 26 '13 at 12:30
    
Then that's okay I guess. Happy to have helped you. –  Kwaio 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. –  Usman Masood 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. –  Usman Masood Jul 26 '13 at 12:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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