You are not logged in.

#1 2017-04-28 23:35:14

johnny28
Member
Registered: 2015-04-08
Posts: 4

[SOLVED] Nautilus root - Show hidden files don't work

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

#2 2017-04-29 07:41:13

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] Nautilus root - Show hidden files don't work

Hello
Could you please elaborate on how it is "impossible"? What have you tried inside nautilus to make it show hidden files and directories? Is the option for showing hidden files and directories enabled?


pkgshackscfgblag

Offline

#3 2017-04-29 08:25:26

DeadMetaler
Member
Registered: 2016-03-16
Posts: 42

Re: [SOLVED] Nautilus root - Show hidden files don't work

johnny28 wrote:

Is there a solution?

sudo dbus-launch nautilus

Offline

#4 2017-04-29 15:27:49

johnny28
Member
Registered: 2015-04-08
Posts: 4

Re: [SOLVED] Nautilus root - Show hidden files don't work

Thank you DeadMetaler smile.

Why?

Offline

#5 2017-04-29 15:36:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,619

Re: [SOLVED] Nautilus root - Show hidden files don't work

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)

Online

#6 2017-04-29 16:09:28

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] Nautilus root - Show hidden files don't work

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

#7 2017-05-03 10:48:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,619

Re: [SOLVED] Nautilus root - Show hidden files don't work

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)

Online

Board footer

Powered by FluxBB