=Samba yum -y install samba passwd fedora pdbedit -a fedora mkdir /etc/skel/samba vi mkhomedir.sh #!/bin/bash for user in `ls /home` do id $user > /dev/null 2>&1 [ $? -eq 0 ] && \ [ ! -d /home/$user/samba ] && \ mkdir /home/$user/samba && \ chown $user:$user /home/$user/samba && \ echo "/home/$user/samba create" done sh mkhomedir.sh rm -f mkhomedir.sh mkdir /home/samba chown nobody:nobody /home/samba vi /etc/samba/smb.conf [global] unix charset = UTF-8 dos charset = CP932 display charset = UTF-8 workgroup = WORKGROUP hosts allow = 192.168.1. 127. [homes] comment = Home Directories path = %H/samba browseable = no writable = yes vfs objects = recycle recycle:repository = .recycle recycle:keeptree = no recycle:versions = yes recycle:touch = no recycle:maxsize = 0 recycle:exclude = *.tmp ~$* [public] comment = Public Stuff path = /home/samba public = yes writable = yes only guest = yes vfs objects = recycle recycle:repository = .recycle recycle:keeptree = no recycle:versions = yes recycle:touch = no recycle:maxsize = 0 recycle:exclude = *.tmp ~$* /etc/rc.d/init.d/smb start vi /etc/cron.weekly/recyclewatch #!/bin/bash for user in `ls /home/` do if [ -d /home/$user/.recycle ]; then tmpwatch -f 720 /home/$user/.recycle/ fi done chmod +x /etc/cron.weekly/recyclewatch == samba-swat yum -y install samba-swat vi /etc/xinetd.d/swat@ service swat { port = 901 socket_type = stream wait = no only_from = 127.0.0.1 only_from = 192.168.20.0@ user = root server = /usr/sbin/swat log_on_failure += USERID disable = no } /etc/rc.d/init.d/xinetd restart@ access http://ipaddress:901/