Hi,
I'm currently migrating a Samba file server from CentOS to Slackware (because the latter has a more convenient release policy). I'm experimenting a lot with a Sandbox network consisting of a Slackware server, two Windows XP clients as well as a Slack+KDE client.
Let's say I want to setup a simple no-frills password-protected share for the LAN. Here's my very simple smb.conf file for this:
Code:
[global]
workgroup = MICROLINUX
netbios name = BERNADETTE
server string = Serveur de fichiers BERNADETTE
security = user
encrypt passwords = yes
browseable = yes
hosts allow = 192.168.2. 127.
[confidentiel]
path = /export/confidentiel
comment = Microlinux Partage Confidentiel
read only = no
Now I want to have one 'microlinux' user for that. Here's how I go about it:
Code:
# useradd -g users -s /bin/false -c "Samba User" microlinux
# smbpasswd -a microlinux
I tested this setup, and on both Windows and Linux clients, the 'microlinux' user can connect to the share with his password. (I didn't setup a system password, only a Samba password, BTW.)
Now the first obvious difference between Samba on CentOS 5.7 and Samba on Slackware 13.37 is the missing /etc/samba/smbpasswd file. On the CentOS server, when I wanted to list my Samba users, it boiled down to this:
Code:
# cat /etc/samba/smbpasswd
This file is not present on Slackware, so I think Samba on Slackware stores user information differently.
Now what would I have to do to simply list my Samba users? The 'smbpasswd' manpage doesn't have this option.
Any suggestion?