3 545
muokkausta
p (siistintää, luokitusta) |
p (BR:t vähemmäksi) |
||
Rivi 3: | Rivi 3: | ||
[global] | [global] | ||
workgroup = KOTISAMBA | workgroup = KOTISAMBA | ||
netbios name = sambakone | netbios name = sambakone | ||
logon drive = h: | logon drive = h: | ||
server string = PDC | server string = PDC | ||
hosts allow = 192.168.c-luokkasi. 127. | hosts allow = 192.168.c-luokkasi. 127. | ||
security = user | security = user | ||
encrypt passwords = yes | encrypt passwords = yes | ||
smb passwd file = /etc/samba/smbpasswd | smb passwd file = /etc/samba/smbpasswd | ||
local master = yes | local master = yes | ||
os level = 65 | os level = 65 | ||
domain master = yes | domain master = yes | ||
preferred master = yes | preferred master = yes | ||
domain logons = yes | domain logons = yes | ||
wins support = yes | wins support = yes | ||
[homes] | [homes] | ||
comment = Home Directories | comment = Home Directories | ||
browseable = no | browseable = no | ||
writable = yes | writable = yes | ||
[netlogon] | [netlogon] | ||
path = /home/netlogon | path = /home/netlogon | ||
writable = no | writable = no | ||
*Anna seuraavat komennot (konenimi on windows-koneesi nimi): | *Anna seuraavat komennot (konenimi on windows-koneesi nimi): | ||
groupadd -g 200 admins | groupadd -g 200 admins | ||
groupadd -g 201 machines | groupadd -g 201 machines | ||
mkdir -m 0775 /home/netlogon | mkdir -m 0775 /home/netlogon | ||
chown root.admins /home/netlogon | chown root.admins /home/netlogon | ||
mkdir /home/samba /home/samba/profiles | mkdir /home/samba /home/samba/profiles | ||
chmod 1757 /home/samba/profiles | chmod 1757 /home/samba/profiles | ||
service smb restart | service smb restart | ||
passwd -l konenimi$ | passwd -l konenimi$ | ||
smbpaswd -a -m konenimi | smbpaswd -a -m konenimi | ||
smbpasswd -a root | smbpasswd -a root | ||
*Muuta palomuuriin. | *Muuta palomuuriin. | ||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 137 -j ACCEPT | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 137 -j ACCEPT | ||
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT | -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT | ||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 138 -j ACCEPT | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 138 -j ACCEPT | ||
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT | -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT | ||
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT | ||
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 139 -j ACCEPT | -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 139 -j ACCEPT | ||
*Anna komennot: | *Anna komennot: | ||
service iptables restart | service iptables restart | ||
service smb restart | service smb restart | ||
*Windowsin puolella: | *Windowsin puolella: |