Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-22-2006, 08:21 PM   #1
(sh)Sneaky Mogs(sh)
LQ Newbie
Registered: Oct 2006
Posts: 6

Rep: Reputation: 0
Question Samba and Windows XP

OK I have setup my smb.conf file to read:

# /etc/samba/smb.conf
# Samba Configuration 2006
# Created 10/21/2006
# Last Updated 10/21/2006


;basic server settings
workgroup = Diablo
netbios name = diablo
server string = Samba PDC running %v

;PDC and master browser settings
os level = 64
preferred master = yes
local master = yes
domain master = yes

;security and logging settings
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow =

;user profiles and home directory
logon home = \\%L\%U\.profile
logon drive = C:
logon path = \\%L\profiles\%U

logon script = netlogon.bat

;Automated Accounts
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u

;sync UNIX passwords
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all*authentication*tokens*updated*successfully*


comment = Home Directories
browseable = no
writeable = yes

path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

path = /home/netlogon
read only = yes
write list = admins
everytime I run a smbpasswd I get:
New SMB password:
Retype new SMB password:
which according to all the documentation I have read means that I have that portion configured correctly. Everytime I press enter though after retyping the password I get this:
getsmbfilepwent: malformed password entry (no :)
getsmbfilepwent: malformed password entry (no :)
mod_smbfilepwd_entry: malformed password entry (no :)
Now I dont know what that all means but I do know that it means that I didnt set something up right as such I was wondering if someone might be able to point me in the right direction. BTW - I entered this all by hand as I dont know how to use SWAT so I might have missed a step but I dont think so as I can find the DOMAIN using the Windows XP Pro machine I just cant connect due to username/password errors.
Old 10-23-2006, 09:58 AM   #2
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61

Does "/etc/samba/smbpasswd" exist?

The above path is on a Fedora Core 3 box, not sure if it would be different on your distro.

Anyway if not you may have missed a step in setting up.

I usually create this file by:

1. cat /etc/passwd | > /etc/samba/smbpasswd

2. chmod 600 /etc/samba/smbpasswd
Then you would need to run:

smbpasswd <your.username>
Check your /etc/samba/smb.conf for the following lines:

encrypt password = yes
smb passwd file = /etc/samba/smbpasswd

Then after editing your /etc/samba/smbpasswd file you would need to stop and restart samba by running the following commands:

service smb stop
service smb start
Old 10-23-2006, 10:45 PM   #3
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
I usually add a smbuser like
smbpasswd -a user

Don't forget to /etc/rc.d/rc.samba restart
Old 10-24-2006, 10:59 PM   #4
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 62
Alien Bob's site is really good on this topic, here is link:


help, samba, slackware

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 05:07 PM
Samba 3.0.21a and Samba Domain Member Servers in a Windows 2003 ADS Domain ramz Linux - Networking 3 04-09-2006 09:26 PM
Samba and Windows maginotjr Slackware 2 07-10-2005 06:53 PM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 07:03 PM
Samba and Windows XP........ Please Help...... jmax24 Linux - Networking 10 05-04-2004 05:54 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration