From owner-freebsd-questions@FreeBSD.ORG Mon Jul 31 10:12:22 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6E96B16A4DF for ; Mon, 31 Jul 2006 10:12:22 +0000 (UTC) (envelope-from m.apitz@oclcpica.org) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64D5743D49 for ; Mon, 31 Jul 2006 10:12:18 +0000 (GMT) (envelope-from m.apitz@oclcpica.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id MAA25083; Mon, 31 Jul 2006 12:09:16 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V2.1) id xma025077; Mon, 31 Jul 06 12:09:03 +0200 Received: from rebelion.Sisis.de (rebelion.Sisis.de [193.31.10.34]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id MAA03312; Mon, 31 Jul 2006 12:12:03 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) Received: (from guru@localhost) by rebelion.Sisis.de (8.13.4/8.13.4/Submit) id k6VABxst013114; Mon, 31 Jul 2006 12:11:59 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to m.apitz@oclcpica.org using -f Date: Mon, 31 Jul 2006 12:11:59 +0200 From: Matthias Apitz To: "A.Elizarov" Message-ID: <20060731101159.GB12918@rebelion.Sisis.de> References: <200607311434.50561.a.elizarov@mail.ioffe.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200607311434.50561.a.elizarov@mail.ioffe.ru> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-RELEASE (i386) Cc: freebsd-questions@freebsd.org Subject: Re: from A.Elizarov@mail.ioffe.ru X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2006 10:12:22 -0000 --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 - 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--