发布时间:2020-07-07 22:15:50来源:阅读:
把下面的内容保存成一个shell 脚本,运行完就有了一个可读写的samba server
#!/bin/bash
yum install samba samba-common samba-winbind -y
mv /etc/samba/smb.conf /etc/samba/smb.conf.backup
echo " [global] " > /etc/samba/smb.conf
echo " workgroup = PXESERVER " >> /etc/samba/smb.conf
echo " server string = Samba Server Version %v " >> /etc/samba/smb.conf
echo " log file = /var/log/samba/log.%m " >> /etc/samba/smb.conf
echo " max log size = 50 " >> /etc/samba/smb.conf
echo " idmap config * : backend = tdb " >> /etc/samba/smb.conf
echo " cups options = raw " >> /etc/samba/smb.conf
echo " netbios name = pxe " >> /etc/samba/smb.conf
echo " map to guest = bad user " >> /etc/samba/smb.conf
echo " dns proxy = no " >> /etc/samba/smb.conf
echo " public = yes " >> /etc/samba/smb.conf
echo " kernel oplocks = no " >> /etc/samba/smb.conf
echo " nt acl support = no " >> /etc/samba/smb.conf
echo " security = user " >> /etc/samba/smb.conf
echo " guest account = nobody " >> /etc/samba/smb.conf
echo " [upload] " >> /etc/samba/smb.conf
echo " comment = upload " >> /etc/samba/smb.conf
echo " path = /home/upload " >> /etc/samba/smb.conf
echo " read only = no " >> /etc/samba/smb.conf
echo " browseable = yes " >> /etc/samba/smb.conf
echo " public = yes " >> /etc/samba/smb.conf
echo " printable = no " >> /etc/samba/smb.conf
echo " guest ok = yes " >> /etc/samba/smb.conf
echo " oplocks = no " >> /etc/samba/smb.conf
echo " level2 oplocks = no " >> /etc/samba/smb.conf
echo " locking = no " >> /etc/samba/smb.conf
mkdir -p /home/upload
chmod -R 0755 /home/upload
chown -R nobody:nobody /home/upload
systemctl restart smb
systemctl enable smb
Cerberus FTP Server Enterprise(FTP服务器软件) v12.0 免费版
28.7M
Emby Server下载
101M
FileZilla Server中文版 v0.9.60.0
2.14 MB
Home Ftp Server下载
2.46MB
Titan FTP Server(SFTP服务器软件) v19.00.3537 免费版
50.1M
WampServer(php集成环境安装包)下载 v3.0.6中文
378.36 MB
Wing FTP Server 5企业破解版 (附注册码) v5.0.9
12.7MB
快速CAD下载
17.21M
AutoHotkey(热键脚本语言编辑工具) v1.1.32.00 中文版
3.1M
coreldrawx6(矢量图形快速设计和制作的工具)v6.0 免费版
7 KB
广联达pdf快速看图下载
29.9M
瞬启盒子(快速启动软件)绿色版 v2.0
1.9M
论文格式快速编排助手 v4.2.0 官方版
2.03MB
闪电OCR图片文字识别软件(文档快速识别工具)2.2.8.0 免费版
43.6MB
EverythingToolbar下载
1.3M
Nextcloud下载
38.4MB
Print Maestro 4破解版
21.1 MB
SoundVolumeView
191KB
windows Server 2008 r2 激活工具 v2.0 绿色版
1.91GB
windows Server 2016下载
5.18G
2020-07-07
IdeaPad Y470、Y570 SRS Premium Sound音效软件的使用方法
V460/B460新版本ELAN触控板双击拖动功能如何实现
如何删除暴风影视库
Docker使用示例(3) – 调试容器
联想创意魔方使用方法及功能介绍
Win8系统摄像头显示有波纹
和平精英:机场南部发现一个大坑,有4个脚趾,像怪兽的脚印!
SaltStack事件驱动(1) – 监视事件
IE9无法显示下拉菜单,下拉内容点击无反应的解决方案