Debian Linux: Allow non-root user to write CDs
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
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- FreeBSD > Sending a Message to an Individual User
- How to: Mount an ISO image under Linux
- FreeBSD > Displaying System-Specific Messages at Login
- FreeBSD: How to write protect important file ( even root can NOT modify / delete file )
- Allow normal user to dialout Internet
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: cdrecord_command, cdrom, dpkg-reconfigure_command, iso file, Linux, mkisofs_command, root users, write cd



Recent Comments
Today ~ 3 Comments
Today ~ 7 Comments
Today ~ 4 Comments
Today ~ 8 Comments
Today ~ 7 Comments