[Samba] How do I create a globally accessible directory [partly solved] (XP works/98 doesn't)

Janyce Wynter janycewynter at cnwl.igs.net
Tue Aug 27 12:51:00 GMT 2002


I have something similar set up on my Samba box (RH7.0). Here's my smb.conf:

# Samba config file created using SWAT
# from blackhawk.swamp.ca (192.168.0.1)
# Date: 2002/08/22 21:39:15

# Global parameters
[global]
        workgroup = SWAMP
        netbios name = BALDEAGLE
        server string = Samba Server %h
        interfaces = 192.168.0.2/24 127.0.0.1/24
        bind interfaces only = Yes
        security = SHARE
        encrypt passwords = Yes
        null passwords = Yes
        unix password sync = Yes
        debug level = 1
        log file = /var/log/samba/%m.log
        max log size = 50
        time server = Yes
        os level = 65
        lm announce = True
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        guest account = smbuser

[public]
        comment = Public
        path = /public
# Force user required only for Win2k:
        force user = smbuser
        writeable = Yes
        create mask = 0664
        directory mask = 0775
        guest ok = Yes

[homes]
        comment = Home Directories
        writeable = Yes
        create mask = 0750
        browseable = No

The directory pemissions on /public need to set as

	chown smbuser:smb  /public
	chmod 2777 /public

This ensures that all the files in the directory get owned by everyone. [And, 
of course, you need to create a Linux user smbuser, and a group called smb.]

Janyce

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 02/06/20





More information about the samba mailing list