According to Gernot Kerschbaumer: While burning my CPU.
> 
> > Then /etc/mtab and fstab are not -rw-r--r-- they should be.
> > 
> > chmod 644 /etc/fstab
> > chmod 644 /etc/mtab
> > 
> > That changes them to read-only for users which should allow your users to
> > mount.
> 
> but /etc/mtab must be writtable, not readable. the solution was given to
> me by another subscriber: say setuid root for /bin/mount

Not on my system, a user writeing to mtab no way..
Mount writes to mtab not the user.
mtab must not be writeable for a user, it could be thats up to you if you
want a "user" to edit your configuration files.

ls -al /etc/mtab
-rw-r--r--   1 root     root          133 Nov 26 09:27 /etc/mtab

The relavant line from /etc/fstab (which is also -rw-r--r--)

/dev/hdc     /mnt/cdrom     iso9660 user,noauto,ro 0 0

mount should be -rwsr-xr-x

What you are saying is your mount program had the wrong permissions in the
first place.

> 
> thank you,

At your service.

> 
> 
> -- 
> dipl.ing. gernot kerschbaumer 
> email:    [EMAIL PROTECTED]                 
> fax:      +43 1 2160493
> homepage: http://stud2.tuwien.ac.at/~e9018967/
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to