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

On startup, I want a certain folder on an automounted NTFS drive (mounted on /media/Data), of which I've got ownership, to be shared with Samba. It should grant access to guests, but they shouldn't be able to edit or delete the files in there.

What is the best way to share a folder with this configuration on Samba on startup?

share|improve this question
up vote 2 down vote accepted

Not really sure why you've assumed terminal commands are the way to share folders with Samba. They are not. What you need to do, assuming samba is already installed, is edit /etc/samba/smb.conf, a samba config file, and add the share to the bottom.


    path = /media/Data/folder_name
    writeable = no
    guest ok = yes

Hope that helps.

share|improve this answer
Thanks for the tip, I still had to change file permissions for the NTFS drive though. The question and answer for this can be found here. – Exeleration-G Dec 10 '11 at 11:52

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.