[SOLVED] Where's "Open as root"?

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

[SOLVED] Where's "Open as root"?

Postby sdim on Sat Apr 28, 2012 5:34 pm

Hello, everyone.

While trying to install some Cinnamon themes, I found out that the right click function of "Open as root" that we had once, is no longer there.
I read in another thread that the nautilus-gksu package is responsible for that, and that it is installed by default in Mint 12, which is true.
What's going on? Is it my installation, or is it something else?

P.S. I know the terminal way of opening as root, but it's much easier by right-clicking, and to be honest, I miss this Nautilus function in Gnome 3.

Many thanks in advance.
Last edited by sdim on Sun Apr 29, 2012 2:32 pm, edited 1 time in total.
MB:MSI 770 C-45 / HD1:500 GB-->Windows / HD2:320 GB-->Linux Mint Debian Edition
CPU:AMD X4 640 3.00 GHz / RAM:4.0 GB / VGA: NVidia GeForce GT240
User avatar
sdim
Level 3
Level 3
 
Posts: 132
Joined: Fri Mar 21, 2008 6:19 pm

Linux Mint is funded by ads and donations.
 

Re: Where's "Open as root"?

Postby GeneC on Sat Apr 28, 2012 6:19 pm

EDIT:

Sdim found a solution that works better than mine. Seems mine only works for me.. :lol:

viewtopic.php?f=208&t=100842&p=573432#p573384
Last edited by GeneC on Sun Apr 29, 2012 3:25 pm, edited 1 time in total.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

1. LMDE(201303) - Gnome Shell 3.6/Cin. 1.8 - Testing
2. LMDE - XFCE 4.10 - SID

3. SolydXK/KDE 4.10-3/SID
(All 64bit multiarch, Nvidia 319.17 - Liquorix 3.8.xx)
User avatar
GeneC
Level 6
Level 6
 
Posts: 1405
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: Where's "Open as root"?

Postby SallyK on Sun Apr 29, 2012 6:34 am

I also have the same problem - I'm running Mint 12, *not* LMDE, and nautilus-gksu is installed, according to Synaptic, but I don't have the Open as root option in my right-click menu.

(I use the Places with Terminal Launcher applet, which automatically opens File System as root, as a work-around, but I'm still wondering why it doesn't work.)
User avatar
SallyK
Level 3
Level 3
 
Posts: 163
Joined: Fri Oct 02, 2009 5:22 pm

Re: Where's "Open as root"?

Postby altair4 on Sun Apr 29, 2012 7:36 am

@SallyK,

Create a symbolic link from the Gnome2 library that does work to the Gnome3 folder that doesn't:
Code: Select all
sudo ln -s /usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/libnautilus-gksu.so

Logout
Log in again

"Open as administrator" should be an option again.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4658
Joined: Tue Feb 03, 2009 10:27 am

Re: Where's "Open as root"?

Postby squeezy on Sun Apr 29, 2012 1:22 pm

GeneC wrote:and put it (as root) in=

Code: Select all
/usr/lib/nautilus/extensions-3.0/


LOG OUT/LOG IN

I've been using it this way since Gnome 3.x came out and it works perfectly for me.
The open as administrator option is back in Nautilus 3.x


Gene, I d'ld your file and put it in the directory you listed. Did it as root. Log out/log in...no option in Nautilus right-click menu. Even rebooted just to be sure.

What are the permissions on your file? Mine are root (owner) read/write, root (group) read-only, others read-only. Does it need the option to run as a program checked?

EDIT: Just ticked the run as program permission. Log out/log in...no difference :(
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: Where's "Open as root"?

Postby sdim on Sun Apr 29, 2012 2:03 pm

Many thanks, GeneC, for the answer.
I'll try it and get back to you.
MB:MSI 770 C-45 / HD1:500 GB-->Windows / HD2:320 GB-->Linux Mint Debian Edition
CPU:AMD X4 640 3.00 GHz / RAM:4.0 GB / VGA: NVidia GeForce GT240
User avatar
sdim
Level 3
Level 3
 
Posts: 132
Joined: Fri Mar 21, 2008 6:19 pm

Re: Where's "Open as root"?

Postby GeneC on Sun Apr 29, 2012 2:24 pm

Hi Squeezy...

You know your not the first to have that problem. It always works for me. I have done it 4 or 5 times on different Gnome 3.x partitions.

Have a look here.

Image

owner: root = Read and Write
Group: root = Read and Write
Others = Read and Write

unchecked = Allow executing file as program

Nautilus 3.2.1

LMDE/Testing/Gnome 3.2.1

I did it just as I described.
Copied the file as root, log-out/in....Bingo.

As I mentioned I have run this since Gnome 3.0 came out in LMDE/SID last Oct 14th. :shock:
And I just did it to a fresh install of LMDE-201204-64bit last week. It has always worked for me. :?:

Sorry, I don't know what else to suggest. :(
Last edited by GeneC on Sun Apr 29, 2012 2:43 pm, edited 1 time in total.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

1. LMDE(201303) - Gnome Shell 3.6/Cin. 1.8 - Testing
2. LMDE - XFCE 4.10 - SID

3. SolydXK/KDE 4.10-3/SID
(All 64bit multiarch, Nvidia 319.17 - Liquorix 3.8.xx)
User avatar
GeneC
Level 6
Level 6
 
Posts: 1405
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: Where's "Open as root"?

Postby sdim on Sun Apr 29, 2012 2:28 pm

While I was answering thie previous posts, another post came up in the Greek Linux Mint Forum by Versys650gr (http://linuxmint.gr/index.php?topic=1362.0).
It goes like this:

First of all, open a terminal and type
Code: Select all
sudo su
gedit .gnome2/nautilus-scripts/Open\ as\ administrator

Then, when the empty document opens, we type
Code: Select all
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do

gksudo "gnome-open $uri" &

done

and we save it.
We go back to the Terminal and we type
Code: Select all
sudo chmod +x .gnome2/nautilus-scripts/Open\ as\ administrator

After that, we can open files as root.

Many thanks to everyone who answered.
MB:MSI 770 C-45 / HD1:500 GB-->Windows / HD2:320 GB-->Linux Mint Debian Edition
CPU:AMD X4 640 3.00 GHz / RAM:4.0 GB / VGA: NVidia GeForce GT240
User avatar
sdim
Level 3
Level 3
 
Posts: 132
Joined: Fri Mar 21, 2008 6:19 pm

Re: [SOLVED] Where's "Open as root"?

Postby squeezy on Sun Apr 29, 2012 2:41 pm

Gene, you have all permission read/write so I'll try that. Don't know that anything writes to that file so read-only should be OK.

Maybe it's because I have a Cinnamon-only install? I didn't install Gnome and then put Cinnamon over it. I just let Cinnamon pull in whatever it wanted when it installed.

I'm also running this against wheezy so that should be the same as yours, Gnome 3.2.1, Nautilus 3.2.1, Cinnamon 1.4

Oh well, not critical but I'll keep hacking away at it 8)
Last edited by squeezy on Sun Apr 29, 2012 2:44 pm, edited 1 time in total.
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: [SOLVED] Where's "Open as root"?

Postby squeezy on Sun Apr 29, 2012 2:44 pm

I'll try that script also, sdim. Thanks!
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: [SOLVED] Where's "Open as root"?

Postby GeneC on Sun Apr 29, 2012 2:46 pm

Mine is Cinnamon/Shell only (no Mate, removed it totally, have Mate on a separate partition) also. :?

PS.
Let me know if the script works for you. If so, I will edit my posts, as my way doesn't seem the best for all.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

1. LMDE(201303) - Gnome Shell 3.6/Cin. 1.8 - Testing
2. LMDE - XFCE 4.10 - SID

3. SolydXK/KDE 4.10-3/SID
(All 64bit multiarch, Nvidia 319.17 - Liquorix 3.8.xx)
User avatar
GeneC
Level 6
Level 6
 
Posts: 1405
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: [SOLVED] Where's "Open as root"?

Postby squeezy on Sun Apr 29, 2012 2:51 pm

Will do on the script :wink:

I installed Cinnamon over a base console-only install. There was nothing on it prior to Cinnamon. A few hiccups but it's working sweetly for the most part!
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: [SOLVED] Where's "Open as root"?

Postby squeezy on Sun Apr 29, 2012 3:17 pm

:D OK, created the script in sdim's post. Works like a charm. You get a Scripts flyout submenu with your new "Open as administrator" choice listed.

open_as_admin.png
My new script :)
open_as_admin.png (89.96 KiB) Viewed 2916 times
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: [SOLVED] Where's "Open as root"?

Postby GeneC on Sun Apr 29, 2012 3:22 pm

OK, thanks. :)

Good to know.

I dont want to confuse folks. I will edit my posts.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

1. LMDE(201303) - Gnome Shell 3.6/Cin. 1.8 - Testing
2. LMDE - XFCE 4.10 - SID

3. SolydXK/KDE 4.10-3/SID
(All 64bit multiarch, Nvidia 319.17 - Liquorix 3.8.xx)
User avatar
GeneC
Level 6
Level 6
 
Posts: 1405
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: [SOLVED] Where's "Open as root"?

Postby nomko on Sun Apr 29, 2012 6:10 pm

*ASUS P5KPL-AM SE*Intel Core(TM)2 Quad CPU Q8200*4 GiB ram*nVidia GeForce 9500GT*Realtek RTL8101/8102E*RaLink RT2500 802.11g*Optiarc DVD RW AD-7200A*HDD:Samsung HD501LJ/HD103SI*Mint 14/Cinnamon*

Dutch Linux Mint forum:http://www.forum.linuxmintnl.nl/
User avatar
nomko
Level 6
Level 6
 
Posts: 1040
Joined: Sat Feb 25, 2012 7:28 pm
Location: /home/nomko

Re: Where's "Open as root"?

Postby SallyK on Sun Apr 29, 2012 7:09 pm

altair4 wrote:@SallyK,

Create a symbolic link from the Gnome2 library that does work to the Gnome3 folder that doesn't:
Code: Select all
sudo ln -s /usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/libnautilus-gksu.so

Logout
Log in again

"Open as administrator" should be an option again.


Thanks, altair4, that did the trick for me.
User avatar
SallyK
Level 3
Level 3
 
Posts: 163
Joined: Fri Oct 02, 2009 5:22 pm

Linux Mint is funded by ads and donations.
 

Return to Cinnamon

Who is online

Users browsing this forum: No registered users and 11 guests