Unable to access the / (root system directory) via system:/media
SlackwareThis Forum is for the discussion of Slackware 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.
Unable to access the / (root system directory) via system:/media
Hi All
When I doubleclick the "20G Media" item (which represents my Slack installation partition) via "System > Storage Media" from the KDE desktop, I get a "permission denied" error. Now this is a bit odd considering that this happens from the root account. I was having similar problems with the external USB sticks but I that was solved after I read up on this. I commented out the USB device entry in /etc/fstab and added "root" to the plugdev group). However, I am still unable to access the Slack partition via the above route. Please note though that I can access it via Konqueror but it would be convenient to access all partitions and devices from "System > Storage Media" as well. Any solutions would be welcomed.
This is a multi-faceted problem.
First, it's generally frowned upon to run a desktop environment as root, so don't do that.
Second, if you insist upon running a desktop environment as root and you want root to have access to the same media:/ stuff as normal users, you will have to add root to the plugdev and cdrom groups in /etc/group. This is because the DBUS IPC system is a bit more strict about checking authorization to do things, and if a user is not in the appropriate groups (regardless of whether that user is root), he won't be allowed to do things that require being in those groups.
Third, after adding a user to those groups, you will have to logout and back in *and* restart the messagebus service.
Keep in mind that HAL and friends are not really intended for use by the root user; the whole idea behind them is to make mounting devices easier for normal users - root can use mount(8) and umount(8) without problems.
First, it's generally frowned upon to run a desktop environment as root, so don't do that.
Fair enough m8, I don't normally do but I had just set up the system and was testing the installation before adding any users and what not. I just felt that it was a bit odd that root had no access to the file system via this route.
Quote:
Originally Posted by rworkman
Keep in mind that HAL and friends are not really intended for use by the root user; the whole idea behind them is to make mounting devices easier for normal users - root can use mount(8) and umount(8) without problems.
Insightful indeed, many thanks for that useful bit of info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.