On Sun, Sep 19, 2004 at 11:39:58AM +0100, [EMAIL PROTECTED] wrote:
> i added the line :
>  "  /dev/hda5        /mnt/box        vfat        rw,auto,users    1   0  "
> to /etc/fstab
> so that normal user can mount /dev/hda5 and use it

The partition is already mounted at boot time. replace 'auto' with
'noauto'. But also see below.

> without beeing root
> but still when trying "mount /dev/hda5 /mnt/xbox
>                i get  "mount : only root can do that"
> though i can still umount it after root have done so
> but even if root mounts the partition a normal
> user can't read from it
> so how do i get normal user to use /dev/hda5 ?

If that is what you need:

1. create a group of all the users that should be able to read and write
   to the partition (if there isn't such a group already) . I assume
   that this group is "users"

2. In the option field put:

   gid=users,umask=770

(rw and auto are default options, no need to mention them)

And while you're at editing that fstab line, add 'utf8' as well, to
avoid any unnecessary problems with Hebrew file names (assuming that
your locale settings are sane)

It is also advised that you change the '1' there to '2' , or even to '0'
. This is the priority of fsck checking at boot time.

-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]


Reply via email to