does Nautilus use /etc/samba/smb.conf

Asked by woodd on 2009-05-13

I would like to configure some global samba settings and examine shares created via Nautilus.
I don't see the shares defined in /etc/samba/smb.conf and I don't have ~/.smb or ~/.samba directories either.

I have created a share that I damaged by removing the shared folder and re-creating a new folder with the same name. I have then re-shared the directory with a new share name. Guess what - both the old and new share names can be located on the home network. Both still work however, Nautilus only sees the "latest" share name.

Where can I delete/remove the old share name?
Your help would be appreciated - thank you

...Dale
Ubuntu 9.04

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
woodd
Solved:
2009-05-13
Last query:
2009-05-13
Last reply:
2009-05-13
woodd (dcwood) said : #2

Interesting link - but no - I have shares that were setup in Nautilus and the shares work.
However, I don't see the shares in /etc/samba/smb.conf - so where are they?
There is one share I want to remove that Nautilus does not have control over currently.

woodd (dcwood) said : #3

I am not sure if this is a samba question or a Nautilus question.

woodd (dcwood) said : #4

I located the config files.

It appears as though /var/lib/samba/usershares holds a text file for each share that has been created.
However, /var/lib/samba/ contains a few binary tdb files (such as share_info.tbd) So my question / search turns to understanding how to properly configure / manage these .tbd files.

woodd (dcwood) said : #5

Simple when you discover where and how ...
username@linux:~> net usershare add share_1 /home/username/folder "" username:F guest_ok=y
username@linux:~> net usershare delete share_1

I am guessing that /etc/smb.conf is still used as well.

...Dale