Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba conf file what should it look like

Status
Not open for further replies.

Pecks

Technical User
Nov 13, 2002
5
GB
I am new to both Linux and samba. I am running red hat on my machine and i have samba version 2.2.1a on it. I was wondering if some one would show me what a working version of the smb.conf file looked like. I am trying to set up a server and I can see the work group and I can enter a password but it does not except it. I know that windows machines send an encrypted password, but what I want to know is in the smb.conf file how do I get Linux to accept the password?

Any help would set me in good stead, I would thank you all for any help at all.
 
Here's a simple sama.conf for a windows workgroup situation. Note that this allows null (blank) passwords and that I'm using the username map.

[global]
log file = /var/log/samba/log.%m
smb passwd file = /etc/samba/smbpasswd
load printers = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
username map = /etc/samba/user.map
null passwords = yes
hosts allow = 192.168.1. 127.0.0.1
encrypt passwords = yes
dns proxy = no
netbios name = Drake
printing = cups
server string = Samba Server %v
workgroup = Engineering
printcap name = lpstat
security = user
preferred master = no
max log size = 50

[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root

[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &


As for your password problem - you have created samba users, correct? Also, not all versions of Windows encrypt passwords- I'm sure 95 does not and maybe 98.
 
I've been having the same problem, and I'm also new to both Linux and Samba. How would i go about checking whether I have created Samba users? And if I hadnt, how can I create new ones?

Thanks,
Thorsten
 
To find out if you have already created users, look in /etc/samba/ at the files smbpasswd and smbusers - if you don't see any normal user names, you haven't created any. To create samba users as root use:

smbpasswd [options] [username] [password]

For more info about the options, look in the documentation for smbpassword.
 
What is your setup. What OS is/are your workstation/s using. Do you have one Linux box running samba or do you have more then one?

See tread:thread865-438500

The link brings you to an IBM web page that describes how to set up a Domain Server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top