You are not logged in.
When I run nautilus
gksudo nautilus
or in a terminal
sudo nautilus
it's impossible to show hidden files and folders.
Is there a solution?
Last edited by johnny28 (2017-04-29 15:29:56)
Offline
Offline
Is there a solution?
sudo dbus-launch nautilus
Offline
Thank you DeadMetaler .
Why?
Offline
Automatic X11 invocation of a dbus session was disabled some time ago in the dbus package. Most graphical programs use dbus in some form for their functionality. dbus-launch will fire up a dbus session for your root user. And it would probably be better to use that command with
gksudo dbus-launch --exit-with-session nautilus
so you don't have a root owned dbus session lingering after you quit nautilus. In general you probably shouldn't be using GUI programs with full root access like that. But it's your system so do whatever... (A better alternative to all of those would be to use the newly introduced admin:// protocol to access the paths you would operate with root rights on, it will make sure that only actually necessary move operations will get temporary privilege escalation)
Offline
I wanted to try that "admin://" stuff, and I just noticed that I can do everything I want from my normal user's Nautilus. I can for example go into "admin:///root" and create files and folders in there. I'm not asked for a password or anything.
What's going on there? Where do I look on how to block this?
EDIT: Also, I noticed I can open a file with gedit, and gedit will show for example "admin:///root" as a location at the top. Changing and saving the text file just works, again without any complaining about permissions or being asked for password.
Last edited by Ropid (2017-04-29 16:15:04)
Offline
The admin:// protocol uses polkit and will likely invoke the same dialog that would be invoked if you e.g. change something in system settings that would require root permission. If I'm not mistaken, this dialog has a remember my password/my authentication checkbox and will not ask you anymore if it was set. You'd have to find out where this flag is set. Another place to look at is /etc/polkit-1/rules.d maybe you (or some software like the above) added a rule to not ask for passwords if invoked by a wheel user for example, like noted e.g. here: https://wiki.archlinux.org/index.php/Po … ord_prompt
Last edited by V1del (2017-05-03 10:48:58)
Offline