Debian Linux: Allow non-root user to write CDs

by LinuxTitli on September 7, 2005 · 1 comment

If you wish to allow non-root users to write CDs, you must give them permissions to do so.

1) Give them permissions by setting SUID-root bit on cdrecord:
# dpkg-reconfigure cdrecord

2) Next you need to add your users to the cdrom group. New user rocky can be added as follows:
# adduser rocky

Once user added, add rocky to group cdrom:
# adduser rocky cdrom

3) Since cdrom group has write access to /dev/cdrom (/dev/hdc etc) and we have added user to cdrom group, rocky will be able to write cds.

4) Create an ISO file and write it:
$ mkisofs -v -o my.iso -R /home/rocky/mydata/
$ cdrecord -v -dev=ATA:1,0,0 speed=4 my.iso

Note as the root user you can mount an ISO file to modify or view its contains.

Related: Burning multi session CDs under Linux

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

{ 1 comment… read it below or add one }

1 SIFE April 30, 2011

I think adding rocky user to operator group will be enough, I tested this in FreeBSD.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 5 + 8 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: