View Full Version : Easy way of editing files requiring root permission
peterthewolf
February 7th, 2006, 04:14 PM
Go to Administration/Disks you will be asked for your root password then in any disk browse while under this option you can double click any editable file and amend in gedit. This saves having to sudo in terminal.
dcstar
February 8th, 2006, 10:14 PM
Go to Administration/Disks you will be asked for your root password then in any disk browse while under this option you can double click any editable file and amend in gedit. This saves having to sudo in terminal.
Or make a Root File Browser icon that launches with the following:
gksudo "nautilus --browser %U" << This goes in the "Command" part of the Launcher you will create!
Then you can browse, edit, whatever as root.
peterthewolf
February 10th, 2006, 06:15 PM
Tried that although as an ordinary user I do not how I would have found it.
Further as you can see from below it does not work.
peter@ubuntu:~$ gksudo "nautilus --browser %U"
(nautilus:8144): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
--- Hash table keys for warning below:
--> file:///
--- Hash table keys for warning below:
--> file:///
(nautilus:8144): Eel-WARNING **: "nautilus-metafile.c: metafiles" hash table still has 1 element at quit time (keys above)
(nautilus:8144): Eel-WARNING **: "nautilus-directory.c: directories" hash table still has 1 element at quit time (keys above)
peter@ubuntu:~$
peterthewolf
February 10th, 2006, 06:25 PM
Sorry but my mad wife used a bit of female logic and saw what you meant straight away and YIPEE it works fine. Still do not understand why.
caven80
February 11th, 2006, 12:14 AM
Hey, Peter,
Can u please tell me what exactly that logic was which ur wife used..??
as i'm facing a similar scenario.
dcstar
February 11th, 2006, 12:30 AM
Hey, Peter,
Can u please tell me what exactly that logic was which ur wife used..??
as i'm facing a similar scenario.
Re-read my (now) edited post.
peterthewolf
February 11th, 2006, 08:17 AM
caven80
Right click on desktop, choose create launcher, against the basic tab put some description in the name (I used "root editor") and choose a suitable icon at bottom of basic tab. Now go to launcher tab and put gksudo "nautilus --browser %U" as mentioned above into command:
Now close and you will have new icon on desktop.
caven80
February 12th, 2006, 08:22 PM
caven80
Right click on desktop, choose create launcher, against the basic tab put some description in the name (I used "root editor") and choose a suitable icon at bottom of basic tab. Now go to launcher tab and put gksudo "nautilus --browser %U" as mentioned above into command:
Now close and you will have new icon on desktop.
---------------------------------------------------------------------
Hey peter,
thanks for ur help. i managed to create the launcher on the desktop and also after initiating the launcher, n putting in my password, i cannot open few folders..it says ' folder cannot be opened' or something like that with some code..
am i not supposed to be able to open anything n everything..??
let me know please..
peterthewolf
March 2nd, 2006, 06:57 PM
Sorry for the delay but it just works. Are you sure you hace gksudo in front of the command.
stanz
March 10th, 2006, 02:16 AM
Hi All,
Geez~ Thats kewl! Thanks...
I wish i was here a few days ago, when- by some solar event or something-
I changed permissions- in a really BAD way.
I use an 'Admin File Manager' in Xandros...and now- thanks to you~ i have that 'saftey net' here too!!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.