Summary: | kcmsamba forgets newly added samba user | ||
---|---|---|---|
Product: | [Unmaintained] kcontrol | Reporter: | Sabourin Gilles <sabourin.gilles> |
Component: | kcmsamba | Assignee: | Jan Schaefer <j_schaef> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | cimmino.marco, darkvision, ewoerner, ivanmaglica, maikoherajin, mmodem00 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | fixes bug when unable to add samba user, and another bug when unable to add samba user to a user list of a share |
Description
Sabourin Gilles
2004-12-10 17:54:48 UTC
I can reproduce this problem with KDE 3.4.0 (kubuntu) Also, I want to add that when I add a user, apply remains disabled. This is not a problem for any other setting in this particular module, so I thought it might be related. Thanks for this module. It's tools like this that make Linux easy to use. I can completely confirm this. Actually I've never seen this particular feature work and I've tested it in every new KDE version since 3.3.x. Using "smbpasswd -a" from command line works no problem. The user also shows up in kcmsamba. Excactly the seame problem in KDE 3.5.1 and 3.5.2 (SUSE 10.1). Users are not added to /etc/samba/smbpasswd file and I have to use the smbpasswd command. I don't know if it's the same problem but you cannot modify the "passwd chat" field in advanced security options. i hope this will be corrected soon because there is a long time this bug is present... Hi... I can second this bug and i searched for the problem. To see what causes this issue i modified the kdenetowrk-3.5.6 sources: =>kdenetwork/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp KProcess p; p << "smbpasswd" << "-a" << user.name; p << password; connect( &p, SIGNAL(receivedStdout(KProcess*,char*,int)), this, SLOT(smbpasswdStdOutReceived(KProcess*,char*,int))); _smbpasswdOutput = ""; ... ... ... I changed "smbpasswd" into "smbdebug" and created a new executable /usr/bin/smbdebug file: #!/bin/sh echo "$3" >/tmp/PASSWD echo "$3" >>/tmp/PASSWD smbpasswd -a $2 <</tmp/PASSWD so smbdebug just get the user+pass and call smbpasswd itself. Using this "workaround" will at least create the new user in /etc/samba/private/smbpasswd. When i enable "PASSWORD DEBUGGING" in the options i get this when starting kcontrol from shell after adding a new user to Samba: kcontrol filesharing: loading /etc/samba/smb.conf filesharing: SambaFile::load: path=/etc/samba/smb.conf filesharing: Samba version = 3 Load smb config files from /dev/null Loaded services file OK. Server role: ROLE_STANDALONE filesharing: setOn : 2 filesharing: setOn : 3 filesharing: setOn : 2 filesharing: setOn : 3 filesharing: setOn : 2 filesharing: setOn : 3 filesharing: When run by root: smbpasswd [options] [username] otherwise: smbpasswd [options] options: -L local mode (must be first option) -h print this usage message -s use stdin for password prompt -c smb.conf file Use the given path to the smb.conf file -D LEVEL debug level -r MACHINE remote machine -U USER remote username extra options when run by root or in local mode: -a add user -d disable user -e enable user -i interdomain trust account -m machine trust account -n set no password -W use stdin ldap admin password -w PASSWORD ldap admin password -x delete user -R ORDER name resolve order filesharing: filesharing: setOn : 2 filesharing: setOn : 3 Looks like the smbpasswd command does not work properly when called from kcontrol but it seem to work nice when called from my temp script. Markus P.S. Sorry... i posted the wrong smbdebug script: #!/bin/sh echo "$0" >/root/LOGFILE echo "$1" >>/root/LOGFILE echo "$2" >>/root/LOGFILE echo "$3" >>/root/LOGFILE echo "$4" >>/root/LOGFILE echo "$5" >>/root/LOGFILE echo "$3" >/root/PASSWD echo "$4" >>/root/PASSWD smbpasswd -a $2 <</root/PASSWD Sorry for that. But here is the output from kcontrol after using this script: kcontrol filesharing: loading /etc/samba/smb.conf filesharing: SambaFile::load: path=/etc/samba/smb.conf filesharing: Samba version = 3 Load smb config files from /dev/null Loaded services file OK. Server role: ROLE_STANDALONE filesharing: setOn : 2 filesharing: setOn : 3 filesharing: setOn : 2 filesharing: setOn : 3 filesharing: setOn : 2 filesharing: setOn : 3 New SMB password: Retype new SMB password: filesharing: Added user slacker. filesharing: filesharing: setOn : 2 filesharing: setOn : 3 Markus I just see that "Platform" of this bug is set to "SuSE RPMs"... i compiled KDE 3.5.6 from source on Slackware 11.0/Samba 3.0.23c. Just in case that this could be helpful to solve that issue. Markus Bug present also under kununtu 6.10 Edgy with KDE 3.5.6, any chance to have fixed for the last kde 3.5.7? *** This bug has been confirmed by popular vote. *** I have the same problem as well. This may also be related to an issue where clicking to add users to a share brings up a list of blank users. Only through the advanced button can users be added. I can't believe this isn't a problem or a priority for anyone other than us, considering it's been around since 2005! Sorry, the bug has been assigned to Alexander Neundorf, but I am the responsible developer. It seems that Alexander has overseen this and did not complain. *** Bug 137685 has been marked as a duplicate of this bug. *** *** Bug 132557 has been marked as a duplicate of this bug. *** is there a way to get this fixed for 3.5.9? Is 4 years old :( No it will not be fixed in 3.5.9, I am sorry. The bug is more difficult to fix then expected. *** Bug 139623 has been marked as a duplicate of this bug. *** Created attachment 28068 [details]
fixes bug when unable to add samba user, and another bug when unable to add samba user to a user list of a share
This patch fixes two bugs in samba kcontrol module.
The first one: it was impossible to add new samba user.
The second one: it was impossible to add samba users to a list of (for example rejected) users of a share.
What's the status of this bug? A patch has been proposed in 2008, since then no reaction. Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug. Kcontrol has been replaced by System Settings in Plasma. Please give the latest version of that a try, and open a new bug in "systemsettings" if you continue to have an issue. Thank you! |