Migrating a Samba server from CentOS to Slackware... where's the 'smbpassd' file?
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] Code:
# useradd -g users -s /bin/false -c "Samba User" microlinux 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 Now what would I have to do to simply list my Samba users? The 'smbpasswd' manpage doesn't have this option. Any suggestion? |
I'll partially answer that myself. Still don't know where Samba keeps user information, but it looks like I've just found the command to list valid Samba users:
Code:
# pdbedit -L |
Code:
ls /etc/samba/private/ |
Quote:
|
That's the right place but the files won't exist until you create your first user.
|
Apparently your old CentOS server is using an old version of Samba, or it carries some legacy from earlier installations.
The smbpasswd file has been deprecated and accounts are now stored either in LDAP or in a TDB database. Comment in the /etc/smb.conf file: Code:
# Backend to store user information in. New installations should Samba users can still be added through smbpasswd but pdbedit is newer and better suited. Eric |
Thanks for the clarification, Eric. By the way, I discovered your Samba HOWTO, but it's not dated. Before I dive into what looks like a nice tutorial (thanks again!), I wonder if the information contained in it still applies to Slackware 13.37.
|
What about the smbpasswd utility, is there a new one too?
|
All times are GMT -5. The time now is 03:57 PM. |