mounting and using cd-rw media from a non root account

2008-05-25 Thread Desmond Chapman

I'm still stuck on the command line for this one. How do I give the user 
permissions and allow an application such as k3b to access the device? Any and 
all links to howtos or your own method is welcome.
Thank you in advance.

_
E-mail for the greater good. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ 
GreaterGood___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mounting and using cd-rw media from a non root account

2008-05-25 Thread Manolis Kiagias

Desmond Chapman wrote:

I'm still stuck on the command line for this one. How do I give the user 
permissions and allow an application such as k3b to access the device? Any and 
all links to howtos or your own method is welcome.
Thank you in advance.


  


I have the following in my /etc/devfs.conf file:

own cd0 root:operator
perm cd0 0660

This makes the cd device owned by root / operator, and the permissions 
are set so that everyone in the operators group can read and write the 
device. If you change it to perm cd0 0666, everyone will be able to read 
and write (depending on your setup, this may have security 
implications). Do not forget to perform /etc/rc.d/devfs restart if you 
change the above file.


You will need to load the atapicam module into the kernel if you wish to 
use utilities like cdrecord and k3b. This will make your atapi CD to be 
handled as a SCSI device.  Use something like:


kldload atapicam

and add: atapicam_load=YES in your /boot/loader.conf so that it also 
loads on your next boot. You can also build atapicam into your kernel if 
you don't want to use the module. The CD will then be handled using a 
cdX device, i.e. cd0, while the atapicd is usually acd0


Finally, for instructions on setting up k3b, go to 
/usr/ports/sysutils/k3b directory and type:


make showinfo

This will tell you most that you need to know on setting up k3b 
(including some of the info mentioned above).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mounting and using cd-rw media from a non root account

2008-05-25 Thread David M. Patronis

Desmond Chapman wrote:

I'm still stuck on the command line for this one. How do I give the user 
permissions and allow an application such as k3b to access the device? Any and 
all links to howtos or your own method is welcome.
Thank you in advance.

_
E-mail for the greater good. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ 
GreaterGood___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  

My own configuration notes. Your mileage may vary : )

#How to install and configure K3b on FreeBSD 7.0

#To install the pre-compiled package (usually satisfactory) use the code 
below


pkg_add -r k3b

# If the pre-compiled package is ill-suited for your system, you can try 
compiling from source using the code below.


cd /usr/ports/sysutils/k3b   make install clean

# Next, we edit configuration files in order to establish the proper 
settings and permissions

# Edit /boot/loader.conf to add the following:

atapicam_enable=YES
hw.ata.atapi_dma=1

# Modify devfs.conf with the following lines:

own cdrom root:operator
perm cdrom 0666
link cd0 cdwriter
own cderiter root:operator
perm cdwriter 0666
own pass0 root:operator
perm pass0 0666
own xpt0 root:operator
perm xpt0 0666

# Edit /etc/rc.conf to add the following:

devd_enable=YES

#I am told the commands below are necessary on occasion. My system seems 
to work fine without them, however.


chmod 4711 /usr/local/bin/cdrecord
chmod 4711 /usr/local/bin/cdrdao



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]