Page 1 of 1

DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 10:34
by tired
Hello

In the new 64 bit Mageia 4 I can't add Samba users with DrakSambaShare, as the user name list is disabled. Any ideas how to fix this or how to get around it? In the early beta version it worked fine.

--
Tim

Re: DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 11:54
by doktor5000
Works just fine here. What security model did you select when setting up the samba server?

Please show the output of
Code: Select all
rpm -qa | grep samba
grep -v -e ^# -e ^\; /etc/samba/smb.conf

Re: DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 13:09
by tired
What security model did you select when setting up the samba server?
Used the defaults.
Please show the output of

Code: Select all
$ rpm -qa | grep samba
samba-server-3.6.22-1.mga4
samba-client-3.6.22-1.mga4
samba-common-3.6.22-1.mga4
$ grep -v -e ^# -e '    #' -e ^\; /etc/samba/smb.conf
[global]
    workgroup = MGAGROUP
    server string = %h
    printcap name = cups
    load printers = yes
    printcap cache time = 60
    printing = cups
    log file = /var/log/samba/%m.log
    max log size = 50
    map to guest = bad user
    security = user
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    dns proxy = no
[homes]
    comment = Home Directories
    browseable = no
    writable = yes
[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    guest ok = yes
    writable = no
    printable = yes
    create mode = 0700
    print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
    use client driver = yes
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    write list = @adm root
    guest ok = yes
    inherit permissions = yes
[pdf-gen]
    path = /var/tmp
    guest ok = No
    printable = Yes
    comment = PDF Generator (only valid users)
    printing = bsd
    print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
    lpq command = /bin/true

Re: DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 15:58
by doktor5000
Looks normal. And samba is running?

Please show the output as root of
Code: Select all
systemctl status smb
journalctl -ab -u smb --no-pager

Re: DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 17:36
by tired
And samba is running?
Yes, it is.
Please show the output of

Code: Select all
 systemctl status smb
smb.service - LSB: Samba servers (nmbd and smbd)
   Loaded: loaded (/etc/rc.d/init.d/smb)
   Active: active (running) since su 2014-03-02 17:07:54 EET; 2min 14s ago
  Process: 2342 ExecStart=/etc/rc.d/init.d/smb start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/smb.service
           ââ2380 smbd -D
           ââ2451 nmbd -D
           ââ2457 smbd -D

maalis 02 17:07:54 palvelin smb[2342]: Käynnistetään NMB-palvelut: [    OK     ]
maalis 02 17:07:54 palvelin systemd[1]: Started LSB: Samba servers (nmbd and smbd).
maalis 02 17:07:54 palvelin smbd[2458]: [2014/03/02 17:07:54.481203,  0] printing/print_cups.c:151(cups_connect)
maalis 02 17:07:54 palvelin smbd[2457]: [2014/03/02 17:07:54.481339,  0] printing/print_cups.c:528(cups_async_callback)
maalis 02 17:07:54 palvelin smbd[2457]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
...
 journalctl -ab -u smb --no-pager
-- Logs begin at la 2014-03-01 13:38:44 EET, end at su 2014-03-02 17:11:19 EET. --
maalis 02 17:07:54 palvelin systemd[1]: Starting LSB: Samba servers (nmbd and smbd)...
maalis 02 17:07:54 palvelin smb[2342]: Käynnistetään SMB-palvelut: [    OK     ]
maalis 02 17:07:54 palvelin smb[2342]: Käynnistetään NMB-palvelut: [    OK     ]
maalis 02 17:07:54 palvelin systemd[1]: Started LSB: Samba servers (nmbd and smbd).
maalis 02 17:07:54 palvelin smbd[2458]: [2014/03/02 17:07:54.481203,  0] printing/print_cups.c:151(cups_connect)
maalis 02 17:07:54 palvelin smbd[2457]: [2014/03/02 17:07:54.481339,  0] printing/print_cups.c:528(cups_async_callback)
maalis 02 17:07:54 palvelin smbd[2457]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
...
(The dots mean the same error messages are repeating.)
Earlier I installed an early beta version of Mageia 4 and added a pile of Samba users to it. Now that the OS has been updated to this official version, the username list is disabled also in this OS.

Re: DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 23:13
by jkerr82508

Re: DrakSambaShare's user creation

PostPosted: Mar 2nd, '14, 23:28
by tired
Thank you!