LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Need help configuring samba server (https://www.linuxquestions.org/questions/linux-networking-3/need-help-configuring-samba-server-207470/)

bruno buys 07-20-2004 12:13 PM

Need help configuring samba server
 
Hi! Need help configuring samba server. Linux is SuSE 9.1, win is winXP. Both connected via crossover cable, no hub.

SuSE can see win shares, browse dirs and upload/download files. Win can't see SuSE, dirs or anything.

smb.conf goes below. I have samba-3.0.4-1.12, and libsmbclient-3.0.4-1.12, webmin-1.130-42

Do you guys see anything wrong in this file?





# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/07/20 13:50:52

# Global parameters
[global]
workgroup = LINUX
server string = frank
interfaces = 127.0.0.1, eth0
bind interfaces only = Yes
map to guest = Bad User
load printers = No
local master = No
domain master = No
ldap suffix = dc=example,dc=com
printer admin = @ntadmin, root, administrator

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[users]
comment = All users
path = /home
read only = No
inherit permissions = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit permissions = Yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[teste]
path = /home/bruno/Documents
read only = No
guest ok = Yes

foo_bar_foo 07-20-2004 01:21 PM

Hi,
i think there are a couple of things to work on

first on the xp box under advanced TCP/IP settings
on the WINS tab
make yourself a file called lmhosts
it's like /etc/hosts in linux
the syntax is like this
127.16.1.1 box1
127.16.1.2 box2
like that
check enable LMHOST lookup
and feed in your lmhost file with "import LMHOST" button
also sellect "Enable NetBIOS over TCP/IP"
and set the WINS server as the Linux box
now in the global section of smb.conf
put
wins support = true
encrypt passwords = yes
for me i use the same username on both machines
and run the command
smbpasswd -a username
to set it up

to test the password settup use
(on the samba machine)
smbclient '//servername/homes' -U username
it will ask for password
if the pasword works it goes to
smb: \>
q to quit
and you know the login works

bruno buys 07-20-2004 02:19 PM

the syntax is like this
127.16.1.1 box1
127.16.1.2 box2
like that

box1 and box2 are the names of the computers?


All times are GMT -5. The time now is 05:46 PM.