配置脚本 清除前期安装的内容(首次安装请跳过) yum -y remove samba sambaclient yum y autoremove rm -rf/srv/smb rm -rf/var/mail/stu* rm -rf /var/mail/tec* rm -rf/var/mail/devak rm -rf /var/mail/smbadmin userdel stul userdel stu2 I stu I tecl userdel tec2 userdel tec userdel devl userdel dev 2 userdel smbadmin groupdel tecgroup groupdel smb group echo old config is clean 2、安装 Samba yum -y install samba sambaclient ho Samba install ok #创建smb服务的资源目录 mkdir -p/srv/smb/PublicShare mkdir -p/ srv/smb/TeachShare kdir -p/srv/smb/WorkShare chmod -R 777/srv/sml L echo'Resource Folder and Privileges is config.'三、配置脚本 1、清除前期安装的内容(首次安装请跳过) yum -y remove samba sambaclient yum -y autoremove rm -rf /srv/smb rm -rf /var/mail/stu* rm -rf /var/mail/tec* rm -rf /var/mail/dev* rm -rf /var/mail/smbadmin userdel stu1 userdel stu2 userdel stu3 userdel tec1 userdel tec2 userdel tec3 userdel dev1 userdel dev2 userdel dev3 userdel smbadmin groupdel stugroup groupdel tecgroup groupdel devgroup groupdel smbgroup echo 'old config is clean.' 2、安装 Samba yum -y install samba sambaclient echo 'Samba install ok.' #创建 smb 服务的资源目录 mkdir -p /srv/smb/PublicShare mkdir -p /srv/smb/TeachShare mkdir -p /srv/smb/WorkShare chmod -R 777 /srv/smb echo 'Resource Folder and Privileges is config