Summary: | Smb4K asks for superuser auth in forked terminal instead of via kdesu, cannot enter password; cannot mount shares, program currently unusable | ||
---|---|---|---|
Product: | unknown | Reporter: | JR <zorael> |
Component: | general | Assignee: | Alexander Reinholdt <alexander.reinholdt> |
Status: | RESOLVED NOT A BUG | ||
Severity: | major | CC: | alexander.reinholdt, zorael |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
JR
2011-06-09 18:24:17 UTC
Thank you for reporting this issue. However, I cannot reproduce it on my Kubuntu 11.04 machine. I followed the steps you described, but Smb4K worked as expected. I even created a symlink /usr/local/bin/kdesu -> /usr/bin/kdesudo (which is not needed, BTW). The only thing I can imagine that might cause this problem is that the needed entries are missing in the sudoers file. Could you please verify that the /etc/sudoers contains something like # Entries for Smb4K users. # Generated by Smb4K. Please do not modify! User_Alias SMB4KUSERS = <your_username> Defaults:SMB4KUSERS env_keep += "PASSWD USER" SMB4KUSERS <your_hostname> = NOPASSWD: /usr/bin/smb4k_kill SMB4KUSERS <your_hostname> = NOPASSWD: /usr/bin/smb4k_umount SMB4KUSERS <your_hostname> = NOPASSWD: /usr/bin/smb4k_mount # End of Smb4K user entries. with <your_username> being your username and <your_hostname> the one of your computer? The sudoers entries curiously weren't there on my desktop machine. However, when I installed Smb4K on my laptop and configured the Super User section, it properly asked for authentication and wrote those lines. Pardon the pastes; [...] User_Alias SMB4KUSERS = zorael Defaults:SMB4KUSERS env_keep += "PASSWD USER" SMB4KUSERS lethe = NOPASSWD: /usr/bin/smb4k_kill SMB4KUSERS lethe = NOPASSWD: /usr/bin/smb4k_umount SMB4KUSERS lethe = NOPASSWD: /usr/bin/smb4k_mount However, the entries don't seem to work? <new bash session> zorael@lethe:~$ sudo -k # to be safe zorael@lethe:~$ sudo /usr/bin/smb4k_kill # to try it out [sudo] password for zorael: Unlike the defaults, my user group is not the same as the hostname, if that makes any difference. The entries in your sudoers file look alright. And I think having a group name that differs from the user name has no influence of the behavior of sudo... At the moment I really do not know what might cause this problem. Have you applied some additional modifications to the sudoers file that might lead to this issue? (In reply to comment #3) > At the moment I really do not know what might cause this problem. Have you > applied some additional modifications to the sudoers file that might lead to > this issue? Apologies for the late reply. No, my sudoers file was completely unmodified. Curiously it works if I don't use the SMB4KUSERS alias. ># Entries for Smb4K users. ># Generated by Smb4K. Please do not modify! >User_Alias SMB4KUSERS = zorael >Defaults:SMB4KUSERS env_keep += "PASSWD USER" >zorael ALL = NOPASSWD: /usr/bin/smb4k_kill >zorael ALL = NOPASSWD: /usr/bin/smb4k_umount >zorael ALL = NOPASSWD: /usr/bin/smb4k_mount ># End of Smb4K user entries. Sorry, smb4k is not tracked here. Try http://sourceforge.net/p/smb4k/tickets/ |