Date: Mon, 3 Jul 2000 17:23:08 -0400 (EDT) From: Vivek Khera <khera@kciLink.com> To: freebsd-stable@FreeBSD.ORG Subject: Re: fstab mount options Message-ID: <14689.1084.894512.504331@onceler.kcilink.com> In-Reply-To: <m266qmc43b.fsf@reader.ptw.com> References: <m266qmc43b.fsf@reader.ptw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "HP" == Harry Putnam <reader@newsguy.com> writes: HP> Is there no possibility of allowing users to mount filesystems, other HP> than sudo or similar? HP> `man fstab' `man mount' seems to indicate no `user' mount options. Correct. FreeBSD doesn't do it like linux does it. You need to turn on a sysctl to allow user mounts, then adjust file permissions to allow specific file systems to be mounted by the user. For example, from my Xstartup script (run by kdm): # allow CD-ROM and ZIP drive user-mounting. for i in /dev/*acd0* /cdrom /dev/*da0* /zip do chmod 0755 $i chown $USER $i done and Xreset when I log out: for i in /dev/*acd0* /cdrom /dev/*da0* /zip do chmod 0755 $i chown root $i done and from /etc/sysctl.conf: # allow users to mount CD-ROM and ZIP drives if they have permissions on # the devices. vfs.usermount=1 Now I can type "mount /cdrom" as a myself after logging on the graphical screen. If you don't login via KDM or XDM, you can do similar things in /etc/fbtab to set the file permissions for the console user. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14689.1084.894512.504331>