Samba: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 45: | Line 45: | ||
</pre> | </pre> | ||
}} | }} | ||
{{Box File|/etc/conf.d/samba| | |||
<pre> | |||
daemon_list="smbd nmbd winbind" | |||
</pre> | |||
}} | |||
{{Box File|/etc/samba/smb.conf| | |||
<pre> | |||
[global] | |||
workgroup = YOURDOMAIN | |||
netbios name = HOSTNAME | |||
server string = HOSTNAME | |||
realm = YOURDOMAIN.LOCAL | |||
security = ADS | |||
encrypt passwords = yes | |||
password server = domaincontroller.yourdomain.local | |||
client use spnego = yes | |||
idmap uid = 15000-20000 | |||
idmap gid = 15000-20000 | |||
winbind use default domain = yes | |||
wins server = xxx.xxx.xxx.xxx | |||
dos charset = 850 | |||
unix charset = UTF-8 | |||
include = /etc/samba/shares.conf | |||
</pre> | |||
}} | |||
{{Box File|/etc/samba/smb.conf| | |||
<pre> | |||
[testshare] | |||
comment = Testshare | |||
path = /mnt/testshare | |||
read only = yes | |||
browseable = yes | |||
valid users = YOURDOMAIN\username | |||
</pre> | |||
}} | |||
{{Box File|/etc/nsswitch.conf| | |||
<pre> | |||
passwd: files winbind | |||
shadow: files winbind | |||
group: files winbind | |||
</pre> | |||
}} | |||
{{Codeline|# net ads join -U Administrator}} and enter the domain-administrator password. | |||
{{Codeline|# /etc/init.d/samba start}} | |||
{{Codeline|# rc-update add samba default}} | |||
Revision as of 13:38, 21 April 2008
USE-Flags
Packages
# emerge samba
# net ads join -U Administrator and enter the domain-administrator password.
# /etc/init.d/samba start
# rc-update add samba default