Reply
Thread Tools
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#31
I tried this with leafpad since I already added emelfm to sudoers.
[Desktop Entry]
Encoding=UTF-8
Name=Leafpad
Exec=root_leafpad.sh
Icon=leafpad
Terminal=false
Type=Application
MimeType=text/plain
Categories=GTK;Utility;TextEditor;
Nothing happens, I tried with "Terminal=true" too out of noobness but still no go.
I can click the icon, wait, click again... nothig.

cat > /usr/bin/root_leafpad.sh << EOF
#!/bin/sh
echo leafpad | root
EOF
chmod 755 /usr/bin/root_leafpad.sh
cat > /usr/bin/root_leafpad.sh << EOF
#!/bin/sh
echo emelfm2 | sudo gainroot
EOF
chmod 755 /usr/bin/root_leafpad.sh
__________________
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#32
Originally Posted by Andre Klapper View Post
As simple as that: Because these files either should not interest you as a normal, average user, or if you're an advanced user there are way better and efficient ways to access them than the File Manager.
How do I get to be someone who decides what normal users should or should not be interested in? Have the Ten Commandments been ammended?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#33
Originally Posted by Bec View Post
I tried this with leafpad since I already added emelfm to sudoers.


Nothing happens, I tried with "Terminal=true" too out of noobness but still no go.
I can click the icon, wait, click again... nothig.
run "root_leafpad.sh" in a terminal.

Also, try adding the full path to the Exec line:

Exec=/usr/bin/root_leafpad.sh
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#34
Absolutely did not read the whole thread, to see ALL files on your N900, SSH WinSCP, you can even see the underwear on your N900!

Step by step guide here, http://talk.maemo.org/showthread.php?t=23932
or
install
MC
or emelfm2

installation info here, http://talk.maemo.org/showthread.php?t=37741

either any of the above will let you see everything on your N900


bun

Last edited by bunanson; 2010-01-18 at 20:09.
 
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#35
Originally Posted by fatalsaint View Post
Exec=/usr/bin/root_leafpad.sh
Mnope...
Maybe we should leave it to sudoers... as long as none of the files there are edited it's less likely something gets damaged.

However not being able to parse a command via a shortcut or even a script is quite annoying... who's bright idea was it to limit such a basic function
__________________
 
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#36
It's about having same access as scp directly on the device. Emelfm2 can't do much unless it's launched as root.
We're discussing various ways of automating a launch as root, no matter what program we're talking about.
Originally Posted by bunanson View Post
MC
or emelfm2
@fatalsaint
Shouldn't we make a sudoers package available in the extras-devel that would allow full emelfm2 root access?
__________________
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#37
We could of couse do that but I don't think a simple way to launch a filemanager as root is the best idea. Yodude explains this prety well in the other emelfm2 as root thread. And I would *never* recommend anybody who does not already have sudo experience to mess with the sudoers file. The best option is a separate script that launches it and a desktop icon for that. Even thats pretty dangerous.

Did u run the leafpad script in a non root terminal?
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#38
Yup, no root... or rather I tried to launch it from a shortcut.
__________________
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#39
this .desktop entry seems to work for me, please try and verify:

Code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=emelFM2 Root 
Exec=/bin/busybox sh -c 'echo emelfm2 | sudo gainroot'
Icon=emelfm2
Type=Application
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following User Says Thank You to SubCore For This Useful Post:
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#40
Originally Posted by SubCore View Post
this .desktop entry seems to work for me, please try and verify:

Code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=emelFM2 Root 
Exec=/bin/busybox sh -c 'echo emelfm2 | sudo gainroot'
Icon=emelfm2
Type=Application
BINGO!
Tried with leafpad.
__________________
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:49.