0 Members and 3 Guests are viewing this topic.
OMG I finally got it. I have seriously put 18 hours into getting this to work today. I HATE SAMBA. Anyway the problem was that I never set the second hard drive to auto mount. Once I did that the directory info changes. You just have to change smb.conf to match. This is what it looks like now.Code: [Select]#======================= Global Settings ====================================[global]workgroup = WORKGROUPserver string = Linux Lite Sharesnetbios name = Serversecurity = userencrypt passwords = trueusername map = /etc/samba/smbusersmap to guest = bad userguest account = nobodydns proxy = no#======================= Share Definitions ===================================[liteshare]path = /home/%U/linux_shareavailable = yesvalid users = %U %Gwrite list = %Ubrowsable = yespublic = yeswritable = yesguest ok = yesread only = noprintable = nolocking = nostrict locking = no[Gunroom]path = /mnt/11390a57-b9fd-4fbb-849a-a1006275139d/shares/available = yesvalid users = %U %Gwrite list = %Ubrowsable = yespublic = yeswritable = yesguest ok = yesread only = noprintable = nolocking = nostrict locking = noThanks everyone for giving me pointers. If nothing else I learned a lot about samba today.
#======================= Global Settings ====================================[global]workgroup = WORKGROUPserver string = Linux Lite Sharesnetbios name = Serversecurity = userencrypt passwords = trueusername map = /etc/samba/smbusersmap to guest = bad userguest account = nobodydns proxy = no#======================= Share Definitions ===================================[liteshare]path = /home/%U/linux_shareavailable = yesvalid users = %U %Gwrite list = %Ubrowsable = yespublic = yeswritable = yesguest ok = yesread only = noprintable = nolocking = nostrict locking = no[Gunroom]path = /mnt/11390a57-b9fd-4fbb-849a-a1006275139d/shares/available = yesvalid users = %U %Gwrite list = %Ubrowsable = yespublic = yeswritable = yesguest ok = yesread only = noprintable = nolocking = nostrict locking = no
For host it needs the Ip address, folder name is the name of the directory of the shared files, user is the username , as the conf file specifies %U, so the username of admin user on the machine running Samba.During the searches I noticed about the Ip, dns it says on a multiple machine shares then it needs to be different for each one so they can be uniquely identified as which machine they are. I'll look for which link explained it. https://wiki.samba.org/index.php/Multiple_Server_InstancesExplains for multiple servers but looking at the adresses format is what I meant.
sudo service smbd restart
chad2 ~ testparmLoad smb config files from /etc/samba/smb.confrlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)Processing section "[Server]"Loaded services file OK.Server role: ROLE_STANDALONEPress enter to see a dump of your service definitions# Global parameters[global] dns proxy = No map to guest = Bad User security = USER server string = Linux Lite Shares username map = /etc/samba/smbusers idmap config * : backend = tdb[Server] guest ok = Yes locking = No path = /media/chad2/backup/shares printable = Yes read only = No strict locking = No valid users = %U %G write list = %U chad2 ~