cd /etc/samba
设置文件夹读写权限:
写:
cp smb.conf .write cmb.conf
/etc/init.d/samba restart
只读:
cp smb.conf.readonly smb.conf
/etc/init.d/samba restart
如果将以上写成脚本,如"写"的脚本为write.
输入命令为
./write
cd /etc/samba
设置文件夹读写权限:
写:
cp smb.conf .write cmb.conf
/etc/init.d/samba restart
只读:
cp smb.conf.readonly smb.conf
/etc/init.d/samba restart
如果将以上写成脚本,如"写"的脚本为write.
输入命令为
./write