Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to setup samba and have a folder share that is not protected by passwords, but open for anyone, read-only. what do i need to write on smb.conf?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

Put this at the bottom of your smb.conf, replacing the path/to/share/point with the location of your shared directory.

[public]
        comment = Public Share
        path = /path/to/share/point
        read only = yes
        guest ok = yes

If it doesn't exist, do

sudo mkdir /path/to/share/point

Then do:

sudo service samba restart

and test.

share|improve this answer
add comment

On the desktop this is as simple as switching on the folder sharing with anonymous access, right click on the folder and click "Sharing Options" it may ask you to install the sharing services, install them:

Share option in nautilus

Once done (and restarted session) then just share the folder with guest access:

Share dialog

On the Ubuntu Server (without graphical desktop) you can follow this guide:

https://help.ubuntu.com/community/SettingUpSamba

Warning! When you enable guest access it does mean the anyone will be able to see your files. This is especially problematic on laptops with wifi networks where you just visit an internet cafe and give your files to your fellow coffee drinkers.

share|improve this answer
    
thanks for the wonderful answer, but i am a kubuntu user, and your answer is very gnome-centric. it hope it helps a lot of people. –  barraponto Nov 22 '10 at 20:55
2  
Could you edit your question so it's specific to gnome and then make a new question which is specific to kde and we'll answer it there too. –  Martin Owens -doctormo- Nov 22 '10 at 21:00
add comment

Your Answer

 
discard

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.