Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running CentOS 6.5 users are being permitted write access to the cdrom/DVD burner due to an ACL. Users in the cdrom group should be the only ones permitted write access.
ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 May 21 02:43 /dev/sr0
Booted in level 3, Pre-login sr0 permisions:
getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
group::rw-
mask::rw-
other::---
Post login with idp account,:
getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
user:idp:rw-
group::rw-
mask::rw-
other::---
The messagebus(DBus) seems to be setting this, but how and why? I say Dbus, because if the messagebus service is stopped the user specific permissions don't change when a user logs in.
You probably made your burner accessible to everybody when you set up your burner software so D-BUS is just doing what you told it to do.
Try to reinstall the burner software "single user only" for an authorized and non-authorized account and test it instead of a single installation using root-like authority (hence deriving "p_owner" rights from the installer) assuming you have an account that can install software but is blocked from the disk.
I think I have a solution better than the one originally suggested. Please, let me know if you see any holes in this approach.
1) Changed /usr/libexec/gvfsd-burn, /usr/bin/wodim, and /usr/bin/brasero to 750
2) Changed /usr/libexec/gvfsd-burn, /usr/bin/wodim, and /usr/bin/brasero to group dto
3) Created group dto
4) Added root and DTO users to dto group
Beware that patches may change these setting!
This does not change the fact that the DBUS daemon or some related service is dynamically applying an ACL giving all users write access to CD/DVD. It just prevents the users from accessing the tools used to burn disks.
If you add other tools like k3b for example, you will need to change the group and permissions on those as well.
PS.
This may sound like a simple solution, but it was not apparent what tool Nautilus was calling to do its burning (gvfsd-burn). And the dynamic ACL problem was a challenge I was reluctant to back away from.
And the dynamic ACL problem was a challenge I was reluctant to back away from.
I appreciate that and I found your efforts very informative, which is helpful for future issues.
Still, I'd do the install/re-install just to avoid having the problem pop back up later, we had a several sets of kernel patches in the last couple of changelogs so kernel maintenance seems to be our maintainers passion at the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.