Samba question

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
In /usr/local/etc there was smb4.conf and smb4.conf.save or smb4.confsave. I can't recall which now. A few days ago I setup some shares on 3 Ubuntu pcs, and to do it I created a new section for smb4conf and smb4.conf save, called SharedMedia, with the correct path etc.
Today, my Frenas server was shutdown without warning, and after a short while it booted back up ok.
Since the reboot, the new section I created in smb4.conf has disappeared and the actual smb4.confsave file has also disappeared.
Hence all the shares I had on 3 ubuntu machines had dissappeared as well

I have now added the new SharedMedia section back into smb4.conf. , and the shares are also back.

Anyone know why it happened.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
In /usr/local/etc there was smb4.conf and smb4.conf.save or smb4.confsave. I can't recall which now. A few days ago I setup some shares on 3 Ubuntu pcs, and to do it I created a new section for smb4conf and smb4.conf save, called SharedMedia, with the correct path etc.
Today, my Frenas server was shutdown without warning, and after a short while it booted back up ok.
Since the reboot, the new section I created in smb4.conf has disappeared and the actual smb4.confsave file has also disappeared.
Hence all the shares I had on 3 ubuntu machines had dissappeared as well

I have now added the new SharedMedia section back into smb4.conf. , and the shares are also back.

Anyone know why it happened.
Because you're supposed to use the UI to add shares? ;) Manual edits to smb4.conf are erased any time that the smb4.conf file is regenerated.
 

avalon60

Guru
Joined
Jan 15, 2014
Messages
597
The shares are there in the UI, but one of them has a 2 word name which I could not get mounted on my desktop.
How then do I add a new section in the UI, so that all the shares are mounted. In my /etc/fstab file in ubuntu using :
//192.168.0.22/WindowsMedia /mnt/SharedMedia cifs credentials=/home/rob/.smbclient,uid=rob 0 0

mounts all the shares in one line, but doing it for each type of share takes up several lines
 
Top