mount fstab

Paul Howarth paul at city-fan.org
Thu Feb 3 17:19:15 UTC 2005


jim lawrence wrote:
> On Thu, 3 Feb 2005 11:55:35 -0500, jim lawrence <fedorajim at gmail.com> wrote:
> 
>>On Thu, 3 Feb 2005 22:13:46 +0530, Rahul Sundaram
>><rahulsundaram at gmail.com> wrote:
>>
>>>On Thu, 3 Feb 2005 11:17:51 -0500, jim lawrence <fedorajim at gmail.com> wrote:
>>>
>>>>hi all,I just want to make sure this line that I put into fsab is
>>>>going to allow me to automount my  "D drive" and allow me to read &
>>>>write to that drive without being root.
>>>
>>>looks good enough to me
>>>
>>>--
>>>Regards,
>>>Rahul Sundaram
>>>
>>
>>i just rebooted   and the permissions on the mounted drive are as follows
>>
>>drwxr-xr-x  9 root root 4096 Dec 31  1969 windrive
>>
>>how can i change them to  me ??
>>the drive is a fat32 partition  just to let you know
> 
> 
> -- i keep getting a permission denied  
> 
> drwxr-xr-x  9 root root 4096 Dec 31  1969 windrive
> drwxrwxr-x  4 jim  jim  4096 Jan 19 23:44 wireless
> [root at JimsNotebook jim]# chown jim windrive
> chown: changing ownership of `windrive': Operation not permitted
> [root at JimsNotebook jim]#

VFAT has no concept of who owns files, so you can't chown them. You need 
to specify who the owner should be at mount time, so try adding the 
options uid=jim,gid=jim to your fstab entry for this filesystem.

Next time you mount it, you should then be the owner of the files.

Paul.




More information about the fedora-list mailing list