really screwy permissions error involving chmod, chgrp, chown
Okay so I was root, mounted a flash drive, and then accidentally copied a file to the flash drive so it inherited the root group's permissions. No big deal I thought, I'll just chmod and chown it to my normal log in. WRONG! Anyways here's the commands/their output I tried after copying that file as root and their output. I ran them as verbose when I could. All these commands were entered by root. The file in question is /media/usb/vimnotes
At the top are the permissions before I try to mess with them, displayed by ls -l. I think you can tell the other commands I ran, if not I'll clarify. Any ideas what happened? I'm extremely perplexed that chmod 777 as root did not set the permissions correctly. Code:
mount -w /dev/sda1 /media/usb/ #usb is a symbolic link to usb0 /etc/mtab Code:
/dev/hda1 / ext3 rw 0 0 Code:
/dev/hda1 / ext3 rw 0 0 |
Since the file system is vfat it doesn't support Linux file system attributes. You can mount it to belong to a particular user/group or with a umask that allows anyone to write to it. For example:
Code:
/dev/sda1 /mnt/usb vfat defaults,umask=0000 |
All times are GMT -5. The time now is 12:08 AM. |