###################samba windows networking ################
# cd /usr/ports/net/samba && make install clean
=> turn on samba in /etc/rc.conf.local
# vi /etc/rc.conf.local
smbd=YES
nmbd=YES
# vi /etc/rc.local
(put this in rc.local)
if [ -f /etc/samba/smb.conf ]; then
if [ X"${smbd}" = X"YES" -a -x /usr/local/libexec/smbd ]; then
echo -n ' smbd'; /usr/local/libexec/smbd -D
fi
if [ X"${nmbd}" = X"YES" -a -x /usr/local/libexec/nmbd ]; then
echo -n ' nmbd'; /usr/local/libexec/nmbd -D
fi
fi
(end of file)
# cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
# vi /etc/samba/smb.conf
(Use dd to delete everything and just put)
(This worked for me you have the backup for all the info in the file)
[global]
workgroup = PING
server string = Samba Server
hosts allow = 192.168.0. 127.0.0.1
log file = /var/log/smbd.%m
max log size = 50
security = user
os level = 20
dns proxy = no
encrypt passwords = yes
load printers = no
[myshare]
comment = Music stuff
path = /share
valid users = user user2 user3
public = yes
writable = yes
printable = no
browseable = yes
create mask = 0765
(end of file)
=> add users :
# smbpasswd -a user
=> give good rights to the dir:
# chown -R user:user /share
# chmod 700 -R /share
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.