|
2012-10-03
, 20:25
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#22
|
The Following 4 Users Say Thank You to misterc For This Useful Post: | ||
|
2012-10-03
, 21:24
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#23
|
tried sudo hamsterfile and got indeed passwd prompt which i simply CR.ed away as i never set a passwd (that i am aware of)
prompt reappears without Hamsterfiler showing up and without error message.
|
2012-10-03
, 21:37
|
|
Posts: 1,625 |
Thanked: 998 times |
Joined on Aug 2010
|
#24
|
|
2012-10-04
, 00:03
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#25
|
never understood the furry about that sudo crap
lead to believe this is the way things are done in #buntu @#$%&ßþ
if you are so edgy on becoming root, why would you want to open a graphical file manager as such?!?
|
2012-10-04
, 13:04
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#27
|
The Following 5 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-10-04
, 17:41
|
|
Posts: 282 |
Thanked: 2,387 times |
Joined on Sep 2011
|
#28
|
osso-xterm "sh -c 'cd """$(dirname ""%s"")"""; sh'"
osso-xterm "sh -c 'cd ""%s""; sh'"
Another bug I forgot to mention: thumbnails don't seem to work in a lot of directories, like if you go to /opt/usr/share/themes/alpha/images/. Unless that's intended behavior?
I don't know how Hamster Filer is handling this, but is seems that it tries to restart itself using sudo (don't know, haven't installed it yet
The "proper" way is IMHO to install the program with the setuid bit (so that it will run with the privileges of its owner, i.e. root), and then, if the option to run as root is not active, the program should just drop privileges
user ALL = NOPASSWD: /usr/bin/run-standalone.sh /opt/hamsterfiler/hamsterfiler
|
2012-10-05
, 08:19
|
Posts: 138 |
Thanked: 90 times |
Joined on Mar 2012
|
#29
|
To correct the problem with running as root, you have to edit "/etc/sudoers.d/hamsterfiler.sudoers" and add one more line:
The only difference from the already existing entry is the missing asterisk (strange, I though sudo's documentation says that "*" means 0 or more characters, but it needs at least 1 for some reason).Code:user ALL = NOPASSWD: /usr/bin/run-standalone.sh /opt/hamsterfiler/hamsterfiler
user ALL = NOPASSWD: /usr/bin/run-standalone.sh /opt/hamsterfiler/hamsterfiler
|
2012-10-05
, 13:53
|
|
Posts: 282 |
Thanked: 2,387 times |
Joined on Sep 2011
|
#30
|
Tags |
hamster filer, nokia n900 |
|
Running it from console leads to this:
Running as root (after 'sudo gainroot') produced REALLY weird output.
Another bug I forgot to mention: thumbnails don't seem to work in a lot of directories, like if you go to /opt/usr/share/themes/alpha/images/. Unless that's intended behavior?
Last edited by Mentalist Traceur; 2012-10-03 at 18:29.