sh腳本----第二個sh腳本,第一個沒權利發佈

#!/bin/sh

##tihuan

sed -i '45s/.*/test /'  /etc/test.txt


#smb zhui jia nei rong

echo "[web]" >>  /etc/samba/smb.conf
echo "path = /www/" >>  /etc/samba/smb.conf
echo "public = yes" >>  /etc/samba/smb.conf
echo "guest ok = yes" >>  /etc/samba/smb.conf
echo "writable = yes" >>  /etc/samba/smb.conf
echo "printable = no" >>  /etc/samba/smb.conf
echo "force create mode = 0777" >>  /etc/samba/smb.conf
echo "create mode = 0777" >>  /etc/samba/smb.conf
echo "force directory mode = 0777" >>  /etc/samba/smb.conf
echo "directory mode = 0777" >>  /etc/samba/smb.conf
echo "force user = nobody" >>  /etc/samba/smb.conf
echo "force group = nogroup" >>  /etc/samba/smb.conf
echo "available = yes" >>  /etc/samba/smb.conf
echo "available = yes" >>  /etc/samba/smb.conf
echo "" >>/etc/samba/smb.conf
/etc/samba/bin/smb restart


發佈了126 篇原創文章 · 獲贊 5 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章