Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you share a directory using samba, you can do this system-wide by editing the /etc/samba/smb.conf file (the advanced way) or by right-clicking a directory using Nautilus and selecting 'Sharing Options' (the easy way). However, while I can see what directories are shared system-wide by looking at /etc/samba/smb.conf, if I share directories using Nautilus, I do not know what directories that I (or other users) have shared.

So how do I list all the directories that have been shared by samba using Nautilus Sharing Options for all the users on a system?

share|improve this question
up vote 3 down vote accepted

You are looking for /var/lib/samba/usershares/ which contains a directory full of different user's shares.

Since one home folder can only ever be shared once, it makes sense to put them here in a central location. The directory is writeable by the sambashare group, so you need to be in that group in order to create a share.

Each share is then owned by the user that created it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.