![]() |
2010-01-15
, 13:13
|
Posts: 162 |
Thanked: 79 times |
Joined on Jan 2010
@ Finland
|
#2
|
The Following 2 Users Say Thank You to chainreaction For This Useful Post: | ||
|
2010-01-15
, 13:24
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#4
|
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.
![]() |
2010-01-15
, 13:37
|
Posts: 755 |
Thanked: 406 times |
Joined on Feb 2008
@ UK
|
#5
|
The Following User Says Thank You to codeMonkey For This Useful Post: | ||
![]() |
2010-01-15
, 13:39
|
Posts: 87 |
Thanked: 47 times |
Joined on Sep 2009
@ Sorocaba, Brasil
|
#6
|
That's true.
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.
For the other things I will use the normal xterminal.
The Following User Says Thank You to dalonso For This Useful Post: | ||
|
2010-01-15
, 13:41
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#7
|
![]() |
2010-01-17
, 19:35
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#8
|
![]() |
2010-01-17
, 20:10
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#9
|
The Following User Says Thank You to Matan For This Useful Post: | ||
![]() |
2010-01-17
, 21:01
|
|
Posts: 876 |
Thanked: 396 times |
Joined on Dec 2009
|
#10
|
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:
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:
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!