Complete.Org: Mailing Lists: Archives: discussion: December 1999:
[aclug-L] Re: dos file permissions under linux
Home

[aclug-L] Re: dos file permissions under linux

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: aclug-L@xxxxxxxxxxxx
Subject: [aclug-L] Re: dos file permissions under linux
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: 15 Dec 1999 12:25:31 -0600
Reply-to: aclug-L@xxxxxxxxxxxx

the short answer: you can't.  DOS does not support permissions.

HOWEVER...

Look at the mount(8) manpage, skip down to the "Mount options for fat" 
section.  Note the uid, gid, and umask items.  These are applicable to 
ALL files in the mounted partition; you cannot apply them to one in
particular.  You can then use a command like:

mount -t vfat -o uid=1000,gid=1000,umask=0002 /dev/hda1 /mnt 

Note that the umask says what NOT to have.  So in this case, only the
world write is denied; either the user with uid 1000 or anyone in
group 1000 will have full access.  You can also specify the option
string in /etc/fstab in the fourth field (where you normally find
"defaults").


"administrator" <walrus@xxxxxxxxxxxxxx> writes:

> Does anyone know how to set file permissions on a fat32 drive that is mounted 
> under Linux?  Right now it is owned by root has these permissions:  
> drwxr-xr-x.  I have Samba set up, and I can see it from the network but I 
> can't write to it.  I have tried to modify the /etc/fstab file after reading 
> the man pages for mount, but it is not working out for me.  I am obviously 
> doing something wrong.  Any suggestions?
> 
> Thanks in advance,
> Michael
> 
> 

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@xxxxxxxxxxxx |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
  via Remote

[Prev in Thread] Current Thread [Next in Thread]