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 <[EMAIL PROTECTED]> - w http://www.oclcpica.org/ http://guru.UnixLand.de/
$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.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to