Bug 887591
| Summary: | system-config-samba got AttributeError in Fedora 18 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | FENG Haibo <feng.haibo> |
| Component: | system-config-samba | Assignee: | Nils Philippsen <nphilipp> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 18 | CC: | christophe.ribet, freemanoid321, johnj, nphilipp |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-22 10:58:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Ahh, samba4 doesn't bring along its own default smbusers file anymore. I've fixed that in the upstream git repository, an update will follow. system-config-samba-1.2.99-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/system-config-samba-1.2.99-1.fc17 system-config-samba-1.2.99-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/system-config-samba-1.2.99-1.fc16 system-config-samba-1.2.99-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/system-config-samba-1.2.99-1.fc18 Package system-config-samba-1.2.99-1.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing system-config-samba-1.2.99-1.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20558/system-config-samba-1.2.99-1.fc18 then log in and leave karma (feedback). *** Bug 871961 has been marked as a duplicate of this bug. *** I just updated system-config-samba-1.2.99-1.fc18, verified it solved my problem. But I meet the new problem when I press OK of "Create New Samba User". In the terminal it prompts: "sh:/usr/bin/smbpasswd: No such file or directory" I searched smbpasswd, and found there is a soft link at: /usr/share/bash-completion/completions/smbpasswd, but this soft link links to smbclient in the same directory. Would you like to trace this new problem in this ticket? Or would like a new one? BR (In reply to comment #7) > Would you like to trace this new problem in this ticket? Or would like a new > one? I'd like a new one for that (just copy and paste your comment text, that should be enough). Thanks! Trying to create a samba user for myself Package: system-config-samba-1.2.97-1.fc17 OS Release: Fedora release 17 (Beefy Miracle) New bug created as Bug 889665 . system-config-samba-1.2.99-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. system-config-samba-1.2.99-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. system-config-samba-1.2.99-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 892775 has been marked as a duplicate of this bug. *** |
Description of problem: system-config-samba got no attribute in Fedora 18: for line in self.samba_users_file: AttributeError: 'SambaBackend' object has no attribute 'samba_users_file' Version-Release number of selected component (if applicable): Fedora 18 Beta and updated to the latest by Dec 16 How reproducible: Steps to Reproduce: 1. Installed Fedora 18 use livecd. 2. sudo yum install samba 3. sudo systemctl enable samba 4. sudo systemctl start samba 5. sudo yum install system-config-samba 6. launch system-config-samba and add a user 7. Click OK and get the error: [haibo@localhost sysutils]$ sudo system-config-samba shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Traceback (most recent call last): File "/usr/share/system-config-samba/addUserWin.py", line 184, in on_add_user_ok_button_clicked elif self.samba_backend.userExists(unix_name): File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 265, in userExists for line in self.samba_users_file: AttributeError: 'SambaBackend' object has no attribute 'samba_users_file' Traceback (most recent call last): File "/usr/share/system-config-samba/addUserWin.py", line 184, in on_add_user_ok_button_clicked elif self.samba_backend.userExists(unix_name): File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 265, in userExists for line in self.samba_users_file: AttributeError: 'SambaBackend' object has no attribute 'samba_users_file' shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Traceback (most recent call last): File "/usr/share/system-config-samba/sambaUserWin.py", line 121, in onUsersOkButtonClicked self.samba_backend.writeSmbUsersFile() File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 184, in writeSmbUsersFile for line in self.samba_users_file: AttributeError: 'SambaBackend' object has no attribute 'samba_users_file' shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Traceback (most recent call last): File "/usr/share/system-config-samba/sambaUserWin.py", line 121, in onUsersOkButtonClicked self.samba_backend.writeSmbUsersFile() File "/usr/lib/python2.7/site-packages/scsamba/core/sambaBackend.py", line 184, in writeSmbUsersFile for line in self.samba_users_file: AttributeError: 'SambaBackend' object has no attribute 'samba_users_file' Actual results: Got AttributeError and the app doesn't exit. Expected results: user is added successfully Additional info: