Openunix.eu


OpenBSD - File sharing

If you want a decent simple samba configuration to share stuff with windows machines, here is a good config for a non-secured public accessible r/w file sharing setup. Works with samba 3.6, may work with later versions too.

Backup your old/original config and open a new one located in /etc/samba/smb.conf

[global]
dns proxy = no
load printers = no
disable spoolss = yes
guest account = nobody
map to guest = Bad Password
workgroup = MyGroupName
server string = publicly shared files
netbios name = MyServerName
hostname lookups = yes
local master = yes
security = user
create mask = 0777
log file = /var/log/samba.log
directory mask = 0777

[public]
path = /home/username/folder_to_share
printable = no
writeable = yes
browseable = yes
only guest = yes


to start the server run:

/etc/rc.d/samba start

And if you want an automated setup then add "samba" or "smbd nmbd" to PKG_SCRIPTS in /etc/rc.conf.local.

  • To share a filesystem with Linux you can format it to ext2
    but for >2G support you need some adjustment:
    newfs_ext2fs -b 4K -O 1 /dev/rsd0k
  •  

    Powered by OpenBSD. Puffy on duty!