From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 20:56:05 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F68916A4BF for ; Thu, 28 Aug 2003 20:56:05 -0700 (PDT) Received: from p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp (p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp [220.111.132.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id A172A43FDD for ; Thu, 28 Aug 2003 20:56:03 -0700 (PDT) (envelope-from lukek@meibin.net) Received: (qmail 68538 invoked by uid 89); 29 Aug 2003 03:55:40 -0000 Received: from unknown (HELO MAGOME) (192.168.10.35) by 192.168.20.5 with SMTP; 29 Aug 2003 03:55:40 -0000 Message-ID: <005101c36de0$d28c0740$230aa8c0@MAGOME> From: "Luke Kearney" To: "Desmond Lee" , References: <000101c36de0$9c1883a0$6501a8c0@croydon> Date: Fri, 29 Aug 2003 12:51:22 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: allowing non root users to mount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 03:56:05 -0000 ----- Original Message ----- From: "Desmond Lee" To: 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