Author Topic: Can't open folders as root using PCmanFM (SOLVED)  (Read 2277 times)

Offline Howard

  • Hero Member
  • *****
  • Posts: 727
Can't open folders as root using PCmanFM (SOLVED)
« on: October 17, 2010, 02:40:55 PM »
Since the update I have been unable to switch to root while using PCmanFM - it used to work.

When I selected the option under tools I got message about a switch not being set, and then a box asking for info, which I didn't really understand but since it gave suggestions I though I'd try them.  I put in "xterm -e %s" in one and something like "gkuf %s" in the other as in the suggestions.  (Sorry I'm a bit vague, but I didn't make notes of the exact wording.)

Now I get the expected request for admin password, but when the window comes up it says "Permission denied".

I don't know how to go back and undo what I did - or how to get it working.  I suppose I should have asked first!!

Can someone help please?
« Last Edit: October 17, 2010, 06:04:51 PM by Howard »
How does one become a hero?  By asking a lot of dumb questions apparently! I have three computers of various ages, the most powerful is a Dell Netbook 10v; each has 2 or 3 versions of PCLOS of various vintages.  Location, St John's, Newfoundland.

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4533
  • Philosophy= Bigger Hammer
Re: Can't open folders as root using PCmanFM
« Reply #1 on: October 17, 2010, 02:47:00 PM »
pop up your pcmanfm  go to edit--preferences---- advanced .. enter in top box lxterminal and in the lower gksu %s

try again
Please Donate Today..Or I Will Make You Wish You Had

Offline Howard

  • Hero Member
  • *****
  • Posts: 727
Re: Can't open folders as root using PCmanFM
« Reply #2 on: October 17, 2010, 03:16:23 PM »
Thanks Scoundrel, tried that but get the same result "Permission denied".  At least I know where that box comes from.

According to the advice %s is the command line you want to execute - is this the problem?

(I tried all combinations with and without the %s - none worked.)
How does one become a hero?  By asking a lot of dumb questions apparently! I have three computers of various ages, the most powerful is a Dell Netbook 10v; each has 2 or 3 versions of PCLOS of various vintages.  Location, St John's, Newfoundland.

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4533
  • Philosophy= Bigger Hammer
Re: Can't open folders as root using PCmanFM
« Reply #3 on: October 17, 2010, 03:21:06 PM »
Thanks Scoundrel, tried that but get the same result "Permission denied".  At least I know where that box comes from.

According to the advice %s is the command line you want to execute - is this the problem?

(I tried all combinations with and without the %s - none worked.)

are you trying to open /home as root ?  try another folder
Please Donate Today..Or I Will Make You Wish You Had

Offline Howard

  • Hero Member
  • *****
  • Posts: 727
Re: Can't open folders as root using PCmanFM
« Reply #4 on: October 17, 2010, 04:12:51 PM »
Actually it was /home/howard, but you are right it's OK on all the other folders I tried.  (Why not /home/me??)

Thanks that should solve some of my problems!
How does one become a hero?  By asking a lot of dumb questions apparently! I have three computers of various ages, the most powerful is a Dell Netbook 10v; each has 2 or 3 versions of PCLOS of various vintages.  Location, St John's, Newfoundland.

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4533
  • Philosophy= Bigger Hammer
Re: Can't open folders as root using PCmanFM
« Reply #5 on: October 18, 2010, 08:05:37 AM »
Actually it was /home/howard, but you are right it's OK on all the other folders I tried.  (Why not /home/me??)

Thanks that should solve some of my problems!

have't found an answer yet...  will ask Neal.. see if he knows .. get all my lxde tips and tricks from him  ;D ;D

thanks Neal  8) 8)
Please Donate Today..Or I Will Make You Wish You Had

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #6 on: October 18, 2010, 08:32:06 AM »
Howard,
As you are the owner of your /home with all read and write access, there is no need for root access to it. When you need root access outside of your /home, > Tools - Open current folder as root or lxdecc (Configure Your LXDesktop - crossed wrench and screwdriver on monitor icon on panel) > System tab > File Manager Superuser mode.


Offline Howard

  • Hero Member
  • *****
  • Posts: 727
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #7 on: October 18, 2010, 08:36:37 AM »
Quote
As you are the owner of your /home with all read and write access, there is no need for root access to it.

Thanks Neal, that's what I guessed, but I just wanted confirmation.  (The rest I knew for once!)
How does one become a hero?  By asking a lot of dumb questions apparently! I have three computers of various ages, the most powerful is a Dell Netbook 10v; each has 2 or 3 versions of PCLOS of various vintages.  Location, St John's, Newfoundland.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #8 on: October 18, 2010, 09:01:51 AM »
Another tip for you:
To have a menu entry for File Manager Super User, create a .desktop file in /usr/share/applications. Name it filemanager-root.desktop or pcmanfm-root.desktop. Open the file in leafpad and copy / paste the following into it --
Code: [Select]
[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=PCManFM Super User
Comment=Browse the file system and manage the files
Categories=FileManager;FileManager;X-MandrivaLinux-System-FileTools;
Exec=gksu pcmanfm /root
StartupNotify=truegksu pcmanfm /root
Terminal=false
MimeType=x-directory/normal;inode/directory;
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11

Save and exit leafpad. Now you have a new menu entry. :)

This must be done as root.

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4533
  • Philosophy= Bigger Hammer
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #9 on: October 18, 2010, 09:49:50 AM »
Another tip for you:
To have a menu entry for File Manager Super User, create a .desktop file in /usr/share/applications. Name it filemanager-root.desktop or pcmanfm-root.desktop. Open the file in leafpad and copy / paste the following into it --
Code: [Select]
[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=PCManFM Super User
Comment=Browse the file system and manage the files
Categories=FileManager;FileManager;X-MandrivaLinux-System-FileTools;
Exec=gksu pcmanfm /root
StartupNotify=truegksu pcmanfm /root
Terminal=false
MimeType=x-directory/normal;inode/directory;
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11

Save and exit leafpad. Now you have a new menu entry. :)

This must be done as root.


what menu ?  in pcmanfm left upper ??  or panel menu ??
Please Donate Today..Or I Will Make You Wish You Had

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #10 on: October 18, 2010, 10:00:51 AM »
Main menu. Button on panel with "PC." ;) ;D 

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4533
  • Philosophy= Bigger Hammer
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #11 on: October 18, 2010, 10:38:59 AM »
Main menu. Button on panel with "PC." ;) ;D 


thanks .. ;D
Please Donate Today..Or I Will Make You Wish You Had

Offline Howard

  • Hero Member
  • *****
  • Posts: 727
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #12 on: October 19, 2010, 05:58:13 AM »
Thanks for that script Neal, now I've got PCmanFM Super User in my menus as well as viewscan.

But it seems that you can only have one Super User window open at a time, unlike with the vanilla version.  Is there a reason for this?
How does one become a hero?  By asking a lot of dumb questions apparently! I have three computers of various ages, the most powerful is a Dell Netbook 10v; each has 2 or 3 versions of PCLOS of various vintages.  Location, St John's, Newfoundland.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #13 on: October 19, 2010, 07:48:22 AM »
Hi,

How come the Menu > Tools > "Open current directory as root"  does not work for you ? Here it works:



melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Howard

  • Hero Member
  • *****
  • Posts: 727
Re: Can't open folders as root using PCmanFM (SOLVED)
« Reply #14 on: October 19, 2010, 09:42:47 AM »
Melodie,

It was because the terminal and switch user command were not set properly after the update.  It now works just the way it used to before the update using the tools tab, just as in your post (mais en anglais naturellement) If you read this thread from the top you will see that Scoundrel showed me how to fix this, the addition to the menu was an additional (and not essential) thing that really came out of another thread we had going at the time about adding items to the menus.

But either way I can only get one super user window on the screen at any one time.
How does one become a hero?  By asking a lot of dumb questions apparently! I have three computers of various ages, the most powerful is a Dell Netbook 10v; each has 2 or 3 versions of PCLOS of various vintages.  Location, St John's, Newfoundland.