[ale] shifting permissions
Joe Steele
joe at madewell.com
Mon Apr 3 12:18:15 EDT 2006
Sean Kilpatrick wrote:
> Can somebody _please_ explain what is happening to me.
> I am running RHFC-3, w/2.6 kernel
>
> I have a new 1-gig thumb drive, formatted with vfat (rw).
>
> I want to mount it at /media/widget. This is the listing:
>
> ls -l /media/widget
> drwxrwxrwx 2 kilpatms users 4096 Apr 3 10:06 widget
>
>
> So then as root I run the mount command and check the perms again:
> [root at sarge media]# mount /dev/sdb1 /media/widget
> [root at sarge media]# ls -l /media/widget
> drwxr-xr-x 2 root root 16384 Dec 31 1969 widget
>
> What is changing the permissions?
> More to the point, how to I stop it so that I can use the Thumb Drive
> from my Home directory?
>
Read up on the mount options for fat/vfat systems, specifically the
umask=, dmask=, and fmask= options. No doubt root's umask is 022, which
is affecting the permissions. Alternatively, you could make use of the
uid= and gid= options so the device is owned by kilpatms/users.
--Joe
More information about the Ale
mailing list