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

I have a headless ubuntu server running samba. I have a windows 7 laptop, windows 8 desktop, a lubuntu desktop running xbmc, and a samsung note2 running android. Whenever any of these computers has a terminal window open running ssh to the server(mothership) samba works perfectly for everything on the network. As soon as I logout or close the terminal window, nothing can access the shared files.

Here is the samba config on mothership:

; General server settings
netbios name = mothership
server string = mothership
workgroup = WORKGROUP
announce version = 5.0

passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = lmhosts wins bcast host hosts

wins support = no

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

path = /home/<my_name>/media
browseable = yes
read only = no
guest ok = yes
create mask = 0644
directory mask = 0755

/home and everything in it is set to 755. Does anyone know how I can get samba to work properly?

share|improve this question
up vote 3 down vote accepted

Do you have an encrypted home directory?

If you do then it is only decrypted when you are logged in.

Try creating a share for a directory that is not in your home directory and see if that works.

share|improve this answer
That did it. Thanks! – Shane May 14 '13 at 2:49

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.