Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2003 12:51:22 +0900
From:      "Luke Kearney" <lukek@meibin.net>
To:        "Desmond Lee" <desmond.lee@shaw.ca>, <freebsd-questions@freebsd.org>
Subject:   Re: allowing non root users to mount
Message-ID:  <005101c36de0$d28c0740$230aa8c0@MAGOME>
References:  <000101c36de0$9c1883a0$6501a8c0@croydon>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----
From: "Desmond Lee" <desmond.lee@shaw.ca>
To: <freebsd-questions@freebsd.org>
Sent: Friday, August 29, 2003 12:49 PM
Subject: allowing non root users to mount


> Hello
>
> I'm trying to set up my system so that it can automatically mount some
> file systems on boot.
>
> However, can you do this on freeBSD? I mean, with RedHat it does it for
> you so that you have a floppy and cdrom icon on your desktop. But can
> you do that w/ freeBSD? I don't think so cause if there is no floppy/zip
> disk/ or cdRom in the drive when you mount, it will return you an error.
> So trying to mount these on boot is not right... is this correct?
>
> So far, I've just set up the /etc/fstab file so that the root can just
> type "mount /floppy" or "mount /zip" or whatever to mount the drives as
> needed. However, only root can do this and no other user is allowed to
> do mounts.
>
> # Device Mountpoint FStype Options Dump
> Pass#
> /dev/ad1s1b none swap sw
> 0 0
> /dev/ad1s1a / ufs rw
> 1 1
> /dev/ad1s1f /usr ufs rw
> 2 2
> /dev/ad1s1e /var ufs rw
> 2 2
> /dev/acd0c /cdrom cd9660 ro,noauto 0
> 0
> /dev/fd0 /floppy msdos   rw,noauto
> 0 0
> /dev/afd0s4 /zip msdos rw,noauto
> 0 0
> proc /proc procfs rw
> 0 0
>
> Is there any way that I can get no root users to mount files systems
> like cdrom, zip and floppy?
>
> I tried to look this up and some people said to use the "user" option in
> the /etc/fstab file, but this didn't work. Using the "nousid" option
> didn't work either.
>
> Thanks in advance.
>
> Regards
>
> Desmond
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"


Hi,
Have you tried changing the permissions on the devices that you want non
root users to be able to mount ? I seem to remember that the are only
mountable by root as default but you might try changing to a more permissive
setup for those devices.

HTH




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005101c36de0$d28c0740$230aa8c0>