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

Samba Setup

Status
Not open for further replies.

pcs800

IS-IT--Management
Apr 9, 2002
339
0
0
US
I found a samba rpm package on the net and installed it on a RedHat 8.0 machine that is used as a proxy/web server on our network.
And I need to share the web directory for backup purposes.
I got the service running, and can see the server from my xp machines, but cannot connect. Path not found.
I have been messing with the smb.conf file, but have no credible clue what to do with it. Here is the contents of the smb.conf file
---------------------------------------------
[global]
workgroup = WORKGROUP
server string = My-proxy
hosts allow = 000.000.000.0
log file = /var/log/samba/%m.log
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192

[Downloads]
comment = home folder
path = /home
browseable = yes
writable = yes
public = yes
read only = no

[homes]
comment = My Home Directory
browseable = yes
writable = yes
public = yes
read only = no

[printers]
path = /var/spool/samba
public = yes
guest ok = yes
printable = yes
browseable = yes
writable = yes
read only = no
----------------------------------------------------------

The name of the server is My-proxy, and I have hidden the address in all zero's for obvious reasons.
Does this look right to anyone? Or wrong to everyone?

Eric VanLandingham
The Bargain Monkey
 
Did you create any samba users? If no, search forum865 for instructions. Other than that, smb.conf looks ok.
 
yes, i created two samba users using the following instructions:
---------------------------
1) Run the command:

smbpasswd -a $USER

Off coarse substitute $USER with the user name

2) Then Set the password

smbpasswd $USER
-------------------------------------------
Still does not work.
I can see the linux box from my xp machine, but can't get into it. It says \\My-proxy was not found, and that I might not have permission.

Eric VanLandingham
The Bargain Monkey
 
2 things.....

1. you may need to enable the smb user as well
smbpasswd -e <username>

2. you may need to set
security = SHARE
at least to start with and then check your log files
to see what it is attempting to do.
 
Now I have this as the smb.conf file
-------------------------
[global]
workgroup = workgroup

encrypt passwords = yes

smb passwd file = /etc/samba/smbpasswd


[home]
comment = For testing only
path = /home
read onfiltered= no
guest ok = yes
-------------------------------
And now from the windows machine, i see it as samba (my-proxy), but still cannopt get in. I will try enabling users like you posted.

Eric VanLandingham
The Bargain Monkey
 
I had the same problem. the solution is to turn off the firewall on the linux box. The default is medium. If you change this setting you should be set.
 
Yeah, someone in another forum suggested the same thing. But I can't turn off the firewall, this is our proxy server. And we use the firewall.

Eric VanLandingham
The Bargain Monkey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top