1 2 |
# apt-get install samba # apt-get install samba-client |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#vi /etc/samba/smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = OPI security = user map to guest = bad user dns proxy = no hosts allow = 192.168.0.0/255.255.255.0 hosts deny = all interfaces = eth0 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 [Downloads] comment = Downloads read only = no locking = no path = /home/user/Downloads guest ok = no |
Add Samba users Samba uses it’s own password system so users need to be added by root. Note that the users have to exist in /etc/passwd
1 2 |
# smbpasswd -a me # smbpasswd -a you |
You will be prompted for a password for each of those users. To list existing Samba users:
1 |
# pdbedit -w -L |
Restart the Samba daemon
1 |
# /etc/init.d/samba restart |
or, if you […]