From owner-freebsd-stable Mon Jul 3 14:23:16 2000 Delivered-To: freebsd-stable@freebsd.org Received: from kci.kciLink.com (kci.kciLink.com [204.117.82.1]) by hub.freebsd.org (Postfix) with ESMTP id F33C237C1AD for ; Mon, 3 Jul 2000 14:23:12 -0700 (PDT) (envelope-from khera@kciLink.com) Received: from onceler.kcilink.com (onceler.kciLink.com [204.117.82.2]) by kci.kciLink.com (Postfix) with ESMTP id 09C1FE896 for ; Mon, 3 Jul 2000 17:23:09 -0400 (EDT) Received: (from khera@localhost) by onceler.kcilink.com (8.9.3/8.9.3) id RAA05613; Mon, 3 Jul 2000 17:23:08 -0400 (EDT) (envelope-from khera@kci.kcilink.com) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14689.1084.894512.504331@onceler.kcilink.com> Date: Mon, 3 Jul 2000 17:23:08 -0400 (EDT) To: freebsd-stable@FreeBSD.ORG Subject: Re: fstab mount options In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "HP" == Harry Putnam 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