![]() |
an already "gainrooted" xterm
Just an idea.
I was bored to type "sudo gainroot" every time I opened the xterm. So I made a shortcut on the desktop, which links to a xterm, which is already "gainrooted", that means: the "sudo gainroot" command has already been typed. I've found the idea here, a thread about desktop command-shortcuts. My code is: Code:
[Desktop Entry] This add an application in the menu called su-xterm. You can make a shortcut to this application on the desktop. After running it, verify if you are root by typing: Code:
whoami I suggest to delete the shortcut to the normal xterm (if you have one), so you can't choose the wrong one. Remember: if you open a new terminal by tapping the upper bar in an opened xterm and then "new" button, you will be USER, not root. Just type "sudo gainroot" again and have fun! (Obviously you need the rootsh package. ;) ) Note: I'm not an expert and this is just a simple idea. Please comment! |
Re: an already "gainrooted" xterm
Umm.. the first comment would be that you should not use this if you happen to use x-terminal in other ways than root. Might not be that bad if you just use the terminal to crack things up, but otherwise this is not the safest idea if you just accidentally forget that you're always automatically root.
|
Re: an already "gainrooted" xterm
Agreed - the extra step to switch to root is imho a good idea - so you're aware of what you're doing.
|
Re: an already "gainrooted" xterm
Quote:
But I've not yet used the xterminal as user. I need beeing root for the most of the things I set by command-line. :o For the other things I will use the normal xterminal. |
Re: an already "gainrooted" xterm
As long as you're aware of the risks :) Happy learning!
|
Re: an already "gainrooted" xterm
Quote:
Look here: http://lists.maemo.org/pipermail//ma...ry/000450.html |
Re: an already "gainrooted" xterm
Quote:
I know that if you are root and you don't know what are you doing your N900 can explode in your hands :D, but at the moment I'm still a N900b and don't know how to change some complex configuration files or the kernel or something like that.... Thanks again! |
Re: an already "gainrooted" xterm
How can I launch an app directly after registering as root?
Exec=/usr/bin/osso-xterm 'sudo gainroot' emelfm2 Exec=/usr/bin/osso-xterm 'sudo gainroot emelfm2' Doesn't seem to work... |
Re: an already "gainrooted" xterm
Add the application to sudoers by creating a file called
/etc/sudoers.d/emelfm2.sudoers containing: user ALL = NOPASSWD: /usr/bin/emelfm2 Then use Exec = /usr/bin/sudo /usr/bin/emelfm2 or Exec = osso-xterm "sudo emelfm2" |
Re: an already "gainrooted" xterm
I have no idea what I'm doing wrong:
/etc/sudoers.d/emelfm2.sudoers with user ALL = NOPASSWD: /usr/bin/emelfm2 also tried with (%) in front and with the line in "01sudo" and the emelfm.desktop with: Exec = /usr/bin/sudo /usr/bin/emelfm2 => the app processes for a little while than it just quits. Exec = osso-xterm "sudo emelfm2" => it asks for a password... i tried sudo gainroot, passwd, set a new password and then replaced the "NOPASSWD" ... didn't work. What am I doing wrong? |
All times are GMT. The time now is 10:39. |
vBulletin® Version 3.8.8