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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba conf problem

Status
Not open for further replies.

sproosy

IS-IT--Management
Oct 31, 2002
94
AU
I have created a smb.conf file using SWAT but cannot access the machine via a Windows cleint. The conf file looks like this:

# Samba config file created using SWAT
# from copernicus (127.0.0.1)
# Date: 2003/08/11 11:53:39

# Global parameters
[global]
workgroup = SMARTHEALTH
netbios name = COPERNICUS
server string = Copernicus RedHat9.0
encrypt passwords = Yes
update encrypted = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 9
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 33
domain master = No
dns proxy = No
guest account = guest
hosts allow = 192.168.0. 127.
printing = cups

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
HTML:
        comment = Apache HTML Dir
        path = /var/[URL unfurl="true"]www/html[/URL]
        valid users = ryan
        read only = No
        guest ok = Yes



Can anyone see whats wrong with my conf file.


Sproosy MCP

Keep it real!
 
which Windows do you use to connect to samba server?
Did you create samba user on your samba server ?
Good Luck...:)
 
to help out a bit:

Add a user:
# smbpasswd -a [user]

and then enable him/her:
# smbpasswd -e [user]

 
Hi

Just change some in smb.cnf
browsable=yes

and then add samba users by giving command

#smbadduser santosh:santosh

then give the password but same name should be given to window or client machines in your local network.
start the service
#service smb start


santosh
 
Yeah i fixed it, i tryed it with the ip address first then set a mask of 0738 on the html share and its good. Thanks for your help guys!

Sproosy MCP

Keep it real!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top