I have installed samba-server, libpam-smbpass and smbclient on my ubuntu 10.04. And I have uncommented the following in my smb.conf file:
security = user
[homes]
comment = Home Directories
browseable = no
read only = no
ANd I created a unix user account and logged in via shell to get the account activated. And I tried \\sambaserver\username
, but I cannot login.
And I tried this in the shell: smbclient -L localhost -U username
. And it shows this:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (sambaserver server (Samba, Ubuntu))
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]
Server Comment
--------- -------
SAMBASERVER sambaserver server (Samba, Ubuntu)
UNKNOWN tomato
Workgroup Master
--------- -------
WORKGROUP UNKNOWN
The above doen'tt show the shared home directory.
EDIT: 1
I want samba accounts to be created automatically when I add unix accounts. For that I use libpam-smbpass package. I used to add hundreds of unix accounts in batch mode, and the above mentioned package also created samba accounts automatically on my old server. Now, on my new server, it isn't happening. The account I created soon after installing libpam-smbpass is working fine. But the accounts created after a reboot aren't. The command pdbedit -w -L
doesn't list the recently added accounts. For testing, I installed libpam-smbpass on my desktop and created two dummy unix accounts, and pdbedit -w -L
command showed that it also created samba accounts. But it doesn't work on my ubuntu 10.04 based new server.