networking - ReadyNAS 316 and Samba - Ask Ubuntu
can/will please setting samba correctly on ubuntu 16.04? have been through several posts on various forums, , have installed server, client, few other things proved useless, followed various instructions editing smb.conf , still cannot find will....
just make go.
of course, want share files between machines. but, need samba "see" home shares on readynas 316. nautilus can connect. can see server in workgroup. and, can see other folders in /data/ directory... but, neither "home" folder not of shares in home folder can seen. can use samba connect readynas number of other machines (mainly os x) ipad connect server. home folder access not problem other os...
but, linux refuses seemingly basic task.
this seems me 1 of things should matter of setting path... user... , pass... but, has proven not case of networking stratgies in linux... far. nfs,smb,afp have been impossible me set up. so, yeah... have 1 handful of hair left after pulling. please me save it.
thank you.
here solution found , cobbled many different posts on many different forums...
the problem in smb.conf of course.
the main solution make 1 machine wins server. (thanks @heynnema) but, [global] section of smb.conf had many small other details cleared initial problem , several other niggling issues. provided here starting point fighting samba working.
1) navigate /etc/hosts file , enter ip , hostname of every system in workgroup hosts file...
2) edit smb.conf similar this:
netbios name = name_of_system
workgroup = workgrp_name ##(same every machine/device)
name resolve order = wins hosts bcast lmhosts
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd ## (create file)
interfaces = xxx.yyy.zzz.www/yy etho ##(this system's ip/mask 8,12 or 24 depending on subnet mask)
bind interfaces = yes
hostname lookups = yes
server string = %h server (samba, ubuntu)
os level = 99
wins support = yes ## (only on machine acting server)
domain master = yes ## (only on machine acting server)
preferred master = yes ## (only on machine acting server)
wins server = xxx.yyy.zzz.www ##(only on client machines.. remark on wins server)
server role = standalone server
unix password sync = yes
ok then
3) create shares...
[share_name]
comment = "whatever want"
path = /home/username ## example
writeable = yes
browseable = yes
valid users = username
4) then.... create user , enable account on systems
sudo smbpasswd -l -a username ## 1 creates user
sudo smbpasswd -l -e username ## 1 enables user
#
this did... and, works me. hope saves else trouble had finding, reading, , figuring out... great starting point putting samba work you.
enjoy
Comments
Post a Comment