Configure Public share on Samba

Kevin C. Krinke kckrinke-eqjHHVKjh9GttCpgsWEBFlaTQe2KTcn/ at public.gmane.org
Sun May 1 17:41:38 UTC 2005


On Sun, 2005-05-01 at 10:49 -0400, JoeHill wrote:
> Next project for my little Debian-server-that-could:
> 
> set up a 'public' share with Samba so that all clients on the LAN can read and
> write to it.
> 
> I've been able to configure it, using SWAT, so that I can access my users home
> dir on the server from my desktop, but there does not appear to be any option
> for creating a 'public' share. I checked the 'Official Samba HowTo' for clues,
> but found no specific mention of how to create a publicly shared folder.
> 
> Any hints appreciated!

Here's what I've used in the past. Edit /etc/samba/smb.conf and add this
block to the end of the file, then restart samba after saving the file.

#############################################
[public]
        comment = Publicly shared files
        browseable = yes
        writable = yes
        create mask = 0644
        directory mask = 755
        public = yes
        guest ok = yes
        path = /path/to/your/public/directory
#############################################

-- 
Kevin C. Krinke <kckrinke-eqjHHVKjh9GttCpgsWEBFlaTQe2KTcn/@public.gmane.org>
Open Door Software Inc.

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list