PDA

View Full Version : [all variants] chown on /media/foo not permitted as root!


biggerben
August 12th, 2009, 08:07 PM
I have a fstab-mounted /media/backup (ext4) and an automounted /media/external (FAT32)
I recently gave my roommate an account on my box, and don't want him to have access to either one, or my /home (obv).

I changed options in fstab to defaults,utf8,umask=0000,uid=1000,gid=1000, is that correct?

I chmod'ed my /home/me to 700.

I tried to chown /media/external to me:me, but get the error
chown: changing ownership of `/media/external': Operation not permitted


first: how do i fix that last error (it's auto-mount, so i can't do anything in fstab!)
second: is everything secured like now? will it still be after a restart?

bodhi.zazen
August 13th, 2009, 12:58 AM
Your umask value is wrong and you can not use chown or chmod on FAT or NTFS partitions.

Try umask=077

biggerben
August 13th, 2009, 02:18 PM
Your umask value is wrong and you can not use chown or chmod on FAT or NTFS partitions.

Try umask=700


Uh, you mean 077, right?

Nepherte
August 13th, 2009, 03:01 PM
Yes, he probably does.

bodhi.zazen
August 13th, 2009, 11:58 PM
Ooops ... Fixed my post