Date: Mon, 31 Jul 2006 12:11:59 +0200 From: Matthias Apitz <m.apitz@oclcpica.org> To: "A.Elizarov" <a.elizarov@mail.ioffe.ru> Cc: freebsd-questions@freebsd.org Subject: Re: from A.Elizarov@mail.ioffe.ru Message-ID: <20060731101159.GB12918@rebelion.Sisis.de> In-Reply-To: <200607311434.50561.a.elizarov@mail.ioffe.ru> References: <200607311434.50561.a.elizarov@mail.ioffe.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit El día Monday, July 31, 2006 a las 02:34:50PM +0000, A.Elizarov escribió: > Good day! > I wanted to mount cdrom and flash as user > not root. > How I can do it? > > What I must write in /etc/fstab -u user ? I'm doing exactly this with the automount daemon; for details of the configuration and involved files see the attached description; matthias -- Matthias Apitz Manager Technical Support - OCLC PICA GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <m.apitz@oclcpica.org> - w http://www.oclcpica.org/ http://guru.UnixLand.de/ --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="automount.txt" $Id: automount.txt,v 1.2 2006/02/27 13:19:34 guru Exp $ for automounting CDROM (and other devices) you configure /etc/amd.conf: [ global ] normalize_hostnames = no print_pid = no restart_mounts = yes auto_dir = /a log_file = /var/log/amd log_options = all #debug_options = all plock = no cache_duration = 6 dismount_interval = 20 selectors_on_default = yes # config.guess picks up "sunos5" and I don't want to edit my maps yet # os = sos5 # if you print_version after setting up "os", it will show it. print_version = no map_type = file search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib browsable_dirs = yes [ /a ] map_name = amd.cdrom [ /u ] map_name = amd.usb /etc/amdmaps/amd.cdrom: cdrom type:=cdfs;fs:=/cdrom;dev:=/dev/acd0;opts:=ro /etc/amdmaps/amd.usb: usb type:=pcfs;fs:=/mnt/usb;dev:=/dev/da0s1;opts:=rw /etc/rc.conf: # # automount daemon rpcbind_enable="YES" nfs_client_enable="YES" amd_enable="YES" amd_flags="" then you just pick-up the directory /a/cdrom with Konqueror and drag and drop the (video) file there to the Xine window, for example. --wRRV7LY7NUeQGEoC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060731101159.GB12918>