View Single Post

  #4 (permalink)  
Old 04-16-2008
Sylvain Robitaille
 
Posts: n/a
Default Re: Why 'mount' utils nees a setuid bit?

Ertugrul Söylemez wrote:

>> As we all known , in most case , 'mount ' can only be used by root .

>
> Wrong.


Actually, the mount(2) manual page confirms the OP's statement:
(from mount(2) on a Linux system; other systems may vary)

Only the super-user may mount and unmount filesystems.

However ...

> .... A regular user can mount entries in /etc/fstab with the 'user'
> or 'users' option set.


.... if said regular user is able to run "mount" with super-user
privileges, thus the setuid bit on the mount(8) binary.

>> What changes must be made in a system without sudo utils .

>
> None. Write a proper filesystem table in /etc/fstab.


agreed ...

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Network and Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Reply With Quote