Search:  
Gentoo Wiki

SAMBA_Installation

This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc
This page is a candidate for deletion 
Reason given: Entire article series:
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.



# echo "net-fs/samba -mysql" >> /etc/portage/package.use
# emerge samba
# nano -w /etc/samba/smb.conf

HOWTO The Home Network for Beginners


File: /etc/samba/smb.conf
[global]
	workgroup = HOMENETWORK
	server string = Samba Server %v
	interfaces = lo, eth1
	bind interfaces only = Yes
	log file = /var/log/samba/log.%m
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	valid users = testuser
	write list = testuser
	read only = No
	hosts allow = 127.0.0.1, 192.168.132.0/24
	hosts deny = 0.0.0.0/0

[files]
	comment = Files
	path = /files
	valid users = testuser
	admin users = testuser
	write list = testuser
	create mask = 0775
	directory mask = 0775
[backup]
	comment = Backup
	path = /backup
	valid users = testuser
	admin users = testuser
	write list = testuser
	create mask = 0775
	directory mask = 0775

[web]
	comment = Web
	path = /var/www/
	valid users = testuser
	admin users = testuser
	write list = testuser
	create mask = 0775
	directory mask = 0775

[mail]
	comment = Mail
	path = /var/vpopmail/domains
	valid users = testuser
	admin users = testuser
	write list = testuser
	create mask = 0775
	directory mask = 0775

[homes]
	comment = Home Directories
	browseable = No
# /etc/init.d/samba start
# rc-update add samba default
# smbpasswd -a -e testuser
# emerge xinetd
# nano -w /etc/xinetd.d/swat
File: /etc/xinetd.d/swat
only_from = 192.168.132.0/24
disable   = no
# /etc/init.d/xinetd start
# rc-update add xinetd default
Retrieved from "http://www.gentoo-wiki.info/SAMBA_Installation"

Last modified: Sat, 09 Aug 2008 04:50:00 +0000 Hits: 9,753