On Thu, Nov 20, 2003 at 03:06:11PM +0200, Eran Tromer wrote:
> Hi,
> 
> How do you let non-root users mount arbitrary filesystems, such as NFS
> and SMB mounts anywhere on the network?
> 
> Linux allows non-root users to load only partitions specified as 'user'
> in /etc/fstab, or pre-specified in a relevant automount entry. Is there
> a way to let users mount arbitrary filesystems whenever the the obvious
> conditions (filesystem type kernel support, write access to mount
> directory, access to underlying resource such as block device or network)?
> 
> One way would be to cook up a sufficiency fancy automount script, though
> it may be non-trivial to make it sufficiently flexible and secure (esp.
> in the presence of SMB passwords and such).
> 
> Other ideas? In particular, is there a way to do this without any
> special a priori setup by the sysadmin?
> 
> Failing that, maybe there's some userspace thing that would emulate a
> mount for all glibc-based programs via LD_PRELOAD?
> 

The proper way would probably be to use sudo and give all authorised
users access to running mount (that would allow you to give that ability
only to the users you want). I don't think it would care though about
the directory permittions in this case.
You could try setting up autofs with wild cards, but I don't know how
that would handle usernames/passwords, and it would require the proper
kernel module.

>   Eran
> 
> 
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
> 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to