[Bug 16575] Re: Cannot create samba user with kcontrol samba module

Bug Watch Updater 16575 at bugs.launchpad.net
Wed Sep 5 10:21:00 UTC 2018


Launchpad has imported 19 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=94828.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2004-12-10T17:54:48+00:00 Gilles-sabourin wrote:

Version:            (using KDE KDE 3.3.2)
Installed from:    SuSE RPMs
OS:                Linux

In KDE configuration control center, I have added my personal UNIX
account into samba user list to be able to browse shared directories on
the local server.

Next time, I came back into users tab. I could not see my account into
samba users list. Only root user was left.

samba security level is " user ".

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/0

------------------------------------------------------------------------
On 2005-04-03T16:41:21+00:00 Markus Mauder wrote:

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.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/2

------------------------------------------------------------------------
On 2005-10-09T13:28:16+00:00 Benjamin Bach wrote:

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.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/5

------------------------------------------------------------------------
On 2006-05-27T09:16:58+00:00 Sebastien-rohaut wrote:

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...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/8

------------------------------------------------------------------------
On 2007-02-11T18:19:37+00:00 Darkvision wrote:

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


Reply at: https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/12

------------------------------------------------------------------------
On 2007-02-11T18:41:41+00:00 Darkvision wrote:

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


Reply at: https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/13

------------------------------------------------------------------------
On 2007-02-11T18:55:33+00:00 Darkvision wrote:

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


Reply at: https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/14

------------------------------------------------------------------------
On 2007-04-01T10:20:50+00:00 Marco Cimmino wrote:

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?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/15

------------------------------------------------------------------------
On 2007-04-01T10:21:23+00:00 Marco Cimmino wrote:

*** This bug has been confirmed by popular vote. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/16

------------------------------------------------------------------------
On 2007-05-29T04:50:17+00:00 Maiko Herajin wrote:

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!

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/20

------------------------------------------------------------------------
On 2007-12-31T16:51:31+00:00 Jan Schaefer wrote:

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.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/27

------------------------------------------------------------------------
On 2008-01-01T21:01:04+00:00 Jan Schaefer wrote:

*** Bug 137685 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/28

------------------------------------------------------------------------
On 2008-01-03T09:01:19+00:00 Jan Schaefer wrote:

*** Bug 132557 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/30

------------------------------------------------------------------------
On 2008-02-08T16:33:23+00:00 Marco Cimmino wrote:

is there a way to get this fixed for 3.5.9? Is 4 years old :(

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/31

------------------------------------------------------------------------
On 2008-02-18T09:35:32+00:00 Jan Schaefer wrote:

No it will not be fixed in 3.5.9, I am sorry. The bug is more difficult
to fix then expected.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/32

------------------------------------------------------------------------
On 2008-05-10T16:02:19+00:00 Jan Schaefer wrote:

*** Bug 139623 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/33

------------------------------------------------------------------------
On 2008-10-22T21:35:20+00:00 Vlbel wrote:

Created attachment 28068
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.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/34

------------------------------------------------------------------------
On 2010-10-05T01:22:33+00:00 Eckhart Wörner wrote:

What's the status of this bug? A patch has been proposed in 2008, since
then no reaction.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/45

------------------------------------------------------------------------
On 2018-09-04T18:07:31+00:00 Andrew-crouthamel wrote:

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!

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/16575/comments/49


** Changed in: kde-baseapps
       Status: Confirmed => Unknown

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/16575

Title:
  Cannot create samba user with kcontrol samba module

To manage notifications about this bug go to:
https://bugs.launchpad.net/kde-baseapps/+bug/16575/+subscriptions




More information about the kubuntu-bugs mailing list