![]() |
Re: [Announce] Hamster Filer - a new file manager
I too have replicated the run-as-root-causes-it-to-not-open problem.
Running it from console leads to this: Code:
~ $ hampsterfiler Code:
Sorry, user user is not allowed to execute '/usr/bin/run-standalone.sh /opt/hamsterfiler/hamsterfiler' as root on Nokia-N900 Running as root (after 'sudo gainroot') produced REALLY weird output. Code:
Running as root Quote:
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? |
Re: [Announce] Hamster Filer - a new file manager
not sure this helps, but...
when starting hamsterfiler from X Terminal as root i get a window with Hamsterfile (root) title (i do use root in X Terminal to become root and i keep using mc as my root filemanager... GUIs are cute, but nothing beats cli, right? thus Hamsterfiler is in "default" mode...) 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. |
Re: [Announce] Hamster Filer - a new file manager
Quote:
But anyway, I don't think sudo (or maybe even all Linux low-level user things) accepts blank passwords. For example, on Ubuntu (and I think as of lately, Debian, if not by default then as an option) root user doesn't have a password, which prevents any and all logins as root. You can always set one with the "passwd user" command, but honestly, there's no point to do so if you never have a use for it (like SSH'ing INTO your N900). Anyway, I think this is fairly clear - if the program uses "sudo" to execute itself as root, then sudo will simply wait indefinitely wait for a password, which prevents the program from opening from GUI, due to the lack of a password being entered. And then, due to no entry in sudoers to allow it, it won't open even if a password is provided, because the default is for sudo to not permit an action unless it's specifically configured to allow it. |
Re: [Announce] Hamster Filer - a new file manager
never understood the furry about that sudo crap
lead to believe this is the way things are done in #buntu @#$%&ßþ :eek: :rolleyes: if you are so edgy on becoming root, why would you want to open a graphical file manager as such?!? :eek: :eek: :eek: :eek: :eek: :eek: :eek: :eek: |
Re: [Announce] Hamster Filer - a new file manager
When you remove the 'run as root' part of the config file by the way, the hampster filer opens if executed from the root account, but it doesn't load the UI elements correctly. Still works fine though for browsing (segmentation fault upon trying to open Settings in that state, though).
Quote:
The logic for locking down the root account with no password by default, is that a hacker can no longer rely on the fact that there will always be an account with the username "root" that the machine can be logged in as, making exploits that still require logging in harder. Or something like that. |
Re: [Announce] Hamster Filer - a new file manager
I was happy when i sow a new file manager ,. better than filebox.:)
But no searching capabilities, just like in filebox.:( |
Re: [Announce] Hamster Filer - a new file manager
Re. sudo/root issues,
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 |
Re: [Announce] Hamster Filer - a new file manager
Quote:
Quote:
Code:
osso-xterm "sh -c 'cd """$(dirname ""%s"")"""; sh'" Code:
osso-xterm "sh -c 'cd ""%s""; sh'" Quote:
Quote:
To correct the problem with running as root, you have to edit "/etc/sudoers.d/hamsterfiler.sudoers" and add one more line: Code:
user ALL = NOPASSWD: /usr/bin/run-standalone.sh /opt/hamsterfiler/hamsterfiler 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). |
Re: [Announce] Hamster Filer - a new file manager
Quote:
Code:
user ALL = NOPASSWD: /usr/bin/run-standalone.sh /opt/hamsterfiler/hamsterfiler |
Re: [Announce] Hamster Filer - a new file manager
Sorry, I forgot to write that editing files in "/etc/sudoers.d/" requires running update-sudoers afterwards.
|
All times are GMT. The time now is 21:02. |
vBulletin® Version 3.8.8