View Full Version : Permissions

2nd January 2007, 10:08 PM
Hey guys. I need a little help here. I want to change permissions on a folder, recursively. I don't understand permissions that well and I haven't searched for help at all. At the moment I'm too busy and a little to lazy to help myself. There, I've said it. I'm guilty. (no attitude implied)

The folder is: /media/winxp2/photos. It's on a FAT32 drive. Here's related ls output.

[root@dad ~]# ls -l /media/winxp2
total 320
drwxrwxrwx 7 root root 16384 Mar 3 2006 Documents and Settings
drwxrwxrwx 4 root root 16384 Nov 11 18:56 mary
dr-xr-xr-x 14 root root 16384 Oct 22 19:25 photos
dr-xr-xr-x 37 root root 16384 Mar 3 2006 Program Files
drwxrwxrwx 3 root root 16384 Jun 9 2006 $recycle.bin
drwxrwxrwx 3 root root 180224 Mar 3 2006 Recycled
drwxrwxrwx 7 root root 16384 Mar 2 2006 System Volume Information
-r-xr-xr-x 1 root root 617 Sep 12 22:48 vista_contact.csv
drwxrwxrwx 129 root root 32768 Mar 3 2006 windows

I want read/write permissions for my user for that folder and I don't know how to change them, unless chmod -R a+rwx /media/winxp2/photos works. Of course, if it does then I understand permissions better than I think I do I guess.

2nd January 2007, 10:14 PM
The FAT32 filesystem doesn't understand Linux file permissions or ownership, so you can't use chmod or chown on files or directories on FAT32 partitions. The permissions are set by options of the mount command, if the partition is mounted at boot then the options can be found in the /etc/fstab file.

2nd January 2007, 10:22 PM
Yeah FAT32 or VFAT regularly ruin file permissions. I *hope* the Microsoft persues it's legal action making FAT proprietary. Then we can all stop using this horrible little floppy disk filesys.

I recently put the EXT2IFS (ext2 for windows) in a VFAT partition on my flash stick and made the rest EXT3. Now I can plug it in any windows box without trashing the file structure.

2nd January 2007, 10:52 PM
Thanks for the replies guys. I'll look into changing the fstab commands and see what happens.

2nd January 2007, 11:01 PM
Being the crazy, I don't care about my OS's too much because I'll just re-install them type of guy, I tried chmod -R a+rw /media/winxp2/photos. Now when I look at any of those folders the little circle with the line is gone, in all the sub folders too. So that's what I wanted. What is the negative impact here? Additionally, should I go ahead and modify my fstab anyhow?