[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] shifting permissions
- Subject: [ale] shifting permissions
- From: joe at madewell.com (Joe Steele)
- Date: Mon, 03 Apr 2006 12:18:15 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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