samba-swat centos7配置

samba-swat centos7配置

########################################################时间同步
yum install -y ntpdate crontabs
service crond start
chkconfig crond on

\cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate ntp6.aliyun.com  #ntp6.aliyun.com 
echo "*/3 * * * * /usr/sbin/ntpdate ntp6.aliyun.com  &> /dev/null" > /tmp/crontab
crontab /tmp/crontab

########################################################
########################################################samba
##安装配置 samba
yum install -y krb5-libs krb5-deve krb5-workstation pam_krb5 
yum install -y samba samba-client samba-winbind-clients samba-winbind samba-common samba4-libs samba-swat

chkconfig smb on
service  smb restart

########################################################
########################################################xinetd
echo '123456' |passwd root --stdin

sed -i 's/only_from.*=.*/only_from = 0.0.0.0/g' /etc/xinetd.d/swat
sed -i 's/disable.*=.*/disable = no/g' /etc/xinetd.d/swat
#sed -i 's/user.*=.*/user = root/g' /etc/xinetd.d/swat
cat  /etc/xinetd.d/swat
service  xinetd restart
chkconfig xinetd on

##

猜你喜欢

转载自www.cnblogs.com/blog-lhong/p/11957055.html