LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-22-2006, 07: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:

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

[global]

;basic server settings
workgroup = Diablo
netbios name = diablo
server string = Samba PDC running %v
socket options = TCP_NPDELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192

;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 = 127.0.0.1 192.168.1.0/255.255.255.0

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

;Netlogon
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*

#---SHARES---

[homes]
comment = Home Directories
browseable = no
writeable = yes

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

[netlogon]
path = /home/netlogon
read only = yes
write list = admins
everytime I run a smbpasswd I get:
Code:
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:
Code:
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, 08:58 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Hello,



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:

Code:
1. cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

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

Code:
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, 09:45 PM   #3
Mr_C
Member
 
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, 09:59 PM   #4
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

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

http://alien.slackbook.org/dokuwiki/...lackware:samba
 
  


Reply

Tags
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 04:07 PM
Samba 3.0.21a and Samba Domain Member Servers in a Windows 2003 ADS Domain ramz Linux - Networking 3 04-09-2006 08:26 PM
Samba and Windows maginotjr Slackware 2 07-10-2005 05:53 PM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
Samba and Windows XP........ Please Help...... jmax24 Linux - Networking 10 05-04-2004 04:54 PM


All times are GMT -5. The time now is 03:19 PM.

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