I am unable to change the privileges of the directory or file which is not in desktop using chmod. while it is working properly for the directory and folders of desktop.
am using the command

chmod 000 /media/drivename/dirname

what should I do??

  • 2
    what is your aim? – iffy Aug 2 '14 at 9:47

You can't do chmod on a drive:

The mode is determined by the partition's mount options (you cannot change it via chmod).

| improve this answer | |
  • 1
    You can chmod 000 a file if you own it. – Oli Aug 2 '14 at 11:42
  • @Oli edited that in – Tim Aug 2 '14 at 11:48
  • Ok I got you @Tim but the command sudo chmod 000 /media/drivename/dirname is also not working..even when I am on shell as a root.. – viveksinghggits Aug 3 '14 at 3:49

You can take a look first:
1. What is partition type for drivename,
as this under directory media it should be removeable media
2. Check if partition is writeable
$ mount |grep drivename
it should show (rw,..something)

if not, please remount with rw options, or take require installation to have writeable

hope this help

| improve this answer | |

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.