Note to Self

Linux/PHP and more
  • Home
  • Linux
  • Coding
  • Other
  • Archives

Samba

2010/11/17 | 11:26

Samba is great for sharing your files from Linux to Windows. This configuration seems to work very well with Windows 7 & Ubuntu 11.10.

apt-get install samba samba-common samba-common-bin samba-doc

/etc/samba/smb.conf

[bash]
[global]
name resolve order = wins lmhosts hosts bcast
netbios name = some_name
wins support = yes
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
domain master = yes
unix extensions = no
#bind interfaces only = True
#interfaces = eth0 192.168.1.3
hosts deny = ALL
hosts allow = 192.168.1.0/24 127.0.0.1 10.0.0.1
log file = /var/log/samba/%m.log
max open files = 100000
log level = 2
follow symlinks = no
security = share
encrypt passwords = true
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY
level2 oplocks = True
read raw = no
panic action = /usr/share/samba/panic-action %d
local master = Yes
preferred master = Yes
os level = 255
dns proxy = No
load printers = No
printing = bsd
printcap name = /dev/null
disable spoolss = yes

[folder]
comment = some_name
printable = no
available = yes
browseable = yes
writeable = yes
force user = user
force group = user
public = yes
read only = no
create mask = 0777
directory mask = 0777
path = /home/user/folder
[/bash]

Categories
Linux
Comments rss
Comments rss

« EXPECT via PHP automate switch config apt-file »

Ads & Posts

I'm using ads to keep this site running. Please don't block them and if you don't mind consider clicking an ad or two to support this blog.

Feel free to use any code I've posted, consider it GPL or whatever. All I ask is that if you find it useful or see improvements that you write a comment about it and credit me if you use it somewhere else :)

Thanks
/Viktor
rss Comments rss