Yahoo.

Thanks Tim, both of your suggestions work.

Robert

On Tue, 2003-01-28 at 10:12, Tim Wright wrote:
> On Mon, 27 Jan 2003, Robert Fisher wrote:
> 
> > I can use the following command (as root) to see my fat32 partition but
> > only root has write access.
> >
> > mount /dev/hda2 /home/robert/storage -t vfat
> 
> in /etc/fstab:
> 
> /dev/hda2  /home/robert/storage  vfat  defaults,uid=45714  0  2
> 
> This automatically mounts /dev/hda2 at startup, with a uid of 45714. There
> is also a gid tag. To find out your uid and gid (user and group ids), try
> this:
> 
> ls -land ~
> 
> it'll give you a line like:
> 
> drwxr-xr-x  105 45714    9500        11864 2003-01-28 10:03 /home/tnw13/
> 
> so, my uid is 47514, and my gid is 9500.
> 
> This scheme has the problem that only the specified user has write access
> to the drive. If this is a problem try:
> 
> /dev/hda2  /home/robert/storage  vfat  defaults,user,noauto  0  2
> 
> This will not mount the partition at startup, and *any* user can mount the
> drive (but only the user that mounted the partition can unmount it). The
> user who mounted it has write access (I believe). The user just mounts it
> by:
> 
> mount /home/robert/storage
> 
> Hope that helps,
> 
> Tim Wright
> 
> Assistant Lecturer
> Department of Computer Science
> University of Canterbury
> 
> http://www.cosc.canterbury.ac.nz/~tnw13
> 
-- 
Robert Fisher
http://www.fisherfamily.orcon.net.nz

Reply via email to