Does anyone know the file in which the entries for the samba shares are stored? For instance the drives or folders I am sharing.
Asked
Active
Viewed 1.6k times
3 Answers
9
If not defined in /etc/samba/smb.conf try folder /var/lib/samba/usershares/ and you will find files for each share you setup via GUI. (Ubuntu 17.10)
MeSo2
- 451
1
If you insist, you can edit /etc/samba/smb.conf I recommend that you make a backup copy or use gedit which will make one (and only one) for you.
Further information regarding this file can be found here.
Elder Geek
- 36,813
-
-
But seriously.. where is the information for a shared location stored? smb.conf doesn't list my shares. – Josh Apr 07 '17 at 03:09
-
I'm quite certain we can help you provided you respond to the requests to [edit] your post with the information requested. For instance this request – Elder Geek Apr 07 '17 at 17:04
0
Try in /etc/samba/smb.conf as per https://help.ubuntu.com/community/Samba/SambaServerGuide
tk-noodle
- 798
smbstatus --shares– tk-noodle Apr 05 '17 at 21:26'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. Access denied.
.. I have existing shares that work.. and I want to basically add new shares similar to how they're already added. Like editing a simple file
– Josh Apr 05 '17 at 21:32lsb_release -athe content of/etc/samba/smb.confand the output ofll /var/lib/samba/usershares/..as at this point it's unclear what you are asking. Please also review http://askubuntu.com/help/how-to-ask for future reference. Thank you for helping us help you! – Elder Geek Apr 07 '17 at 16:58gio mount smb://and will be and will be on/run/user/$(id -u)/gvfs/... – Pablo Bianchi Apr 05 '23 at 17:55