LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba Setup (https://www.linuxquestions.org/questions/linux-networking-3/samba-setup-103089/)

christer 10-12-2003 12:08 PM

Samba Setup
 
Hey. I've got a LAN setup in my apartment with two other boxes running XP Pro. I've got RH9 and would like to see the LAN on my box for file sharing & other things.

Can someone give me some quick instructions on how to set that up? I'm pretty sure I've got the packages installed for running SMB but I'm unsure yet as to how I turn it on.

Thanks In Advance.

ziggie216 10-12-2003 12:14 PM

if samba is not running go into /etc/init.d and have it auto run at start up by typeing chkconfig --level 345 smb on

then go into /etc/samba and edit the smb.conf
i'm not sure what kind of configuration u want so check the man smb.conf

mine is just a simple configuration. i can post part of mine later on if u want to look at it

christer 10-12-2003 12:27 PM

Ok. I just played with the smb.conf file. I think I've got it setup... let's hope it works.

If you could post your .conf it'd be helpful. Thanks

ziggie216 10-12-2003 05:43 PM

#======================= Global Settings =====================================
[global]
log file = /var/log/samba/%m.log
dns proxy = no
smb passwd file = /etc/samba/smbpasswd
server string = LinuxBox
hosts equiv = /etc/samba/lmhosts
obey pam restrictions = yes
socket options = SO_KEEPALIVE TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
unix password sync = Yes
workgroup = workgroup
os level = 65
interfaces = 192.168.0.100/255.255.255.0
comment = My Stuff
encrypt passwords = yes
security = user
passwd program = /usr/bin/passwd %u
max log size = 0
pam password change = yes
wins support = true

#Home Directory for users
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775

#Share folder
[Share]
path = /mnt/hdb1/Share
create mode = 0664
directory mode = 0775
writeable = yes




I think you have to create an user for each computer. use smbadduser unixid:ntid like smbadduser linux:window
password is not necessary if everyone on your network can be trusted.


All times are GMT -5. The time now is 10:08 PM.