Quote |
[global] workgroup = home server string = Samba Server hosts allow = 192.168.2.0./255.255.255.0 127.0.0.1 log file = /var/log/log.%m max log size = 50 security = share socket options = TCP_NODELAY dns proxy = no encrypt passwords = true #============================ Share Definitions ============================== [test] comment = Testfreigabe path = /home browseable = yes public = yes [public] comment = Public browseable = yes path = /mnt/sdb5/Daten public = yes only guest = yes writable = yes read only = no |
Quote |
ifconfig eth0 192.168.2.10 route add default gw 192.168.2.1 echo nameserver 192.168.2.1 > /etc/resolv.conf ifup eth0 |
Quote |
/public 192.168.2.*(rw,sync) *HOME(rw,sync) |
Quote |
ssh sshd : ALL@ALL : ALLOW ALL : 127.0.0.1 LOCAL : ALLOW ALL : ALL@ALL : DENY portmap: 192.168.2.0/255.255.255.0 *.Home : ALLOW |
Quote |
ALL: ALL: spawn(echo Attempt from %h %a to %d at $(date) >> /var/log/deny.log) |
Quote |
etc/exports etc/hosts.allow etc/hosts.deny etc/samba |
Quote |
#SATA-Partition mounten mkdir /public chmod 777 /public mount /dev/sdb5 /public mkdir /VPC chmod 777 /VPC mount /dev/hda7 /VPC #NFS-Server starten portmap start #Samba reset smbd restart nmbd restart |
Quote |
[global] workgroup = HOME ; server string = %h Server dns proxy = no log file = /var/log/log.%m max log size = 50 syslog = 0 encrypt passwords = yes security = share ; obey pam restrictions = yes socket options = TCP_NODELAY #============================ Share Definitions ============================== [public] comment = Public browseable = yes path = /public public = yes guest ok = yes only guest = yes writeable = yes read only = no create mask = 0666 directory mask = 0777 [VPC] comment = Virtuelle Computer browseable = yes path = /VPC public = yes guest ok = yes only guest = yes writeable = yes read only = no create mask = 0666 directory mask = 0777 |