Linux 常用工具
YUM
yum init system
create local repo yum
centos 7 init system
FTP
How to Install and Configure vsftpd on CentOS 6
vsftp install on centos 7
Email
aliyun ecs install email
postfix smtp on centos
centos 6 postfix smpt test
GIT
gogs install centos6
git command example
git format markdown
HTTP Web
apache exampe
h5ai web php file server
apache vhosgts code debug
Nginx Web
nginx install from source
nginx set directory autoindex
autoindex with h5ai web
nginx install pugin ngx-fancyindex
proxy internal vhost to web
dynamic and static by nginx
proxy directory second by nginx
nginx proxy gogs web
jenkns proxy from nginx
ssl certify by nginx
nginx threads fix to 9x
NTP
linux install ntp use asia date
VNC
vnc remote desktop
x11vnc on centos6
Firewall
iptables on centos 7
centos7 firewalld config
Kernel
centos kernel packages
kernel update to 3.10 on centos 6
SYSCTL 内核配置参数分析
NFS
centos6 install nfs servers
mount nfs to linux
mount nfs on centos 6
centos6 nfs verify permissions
SSH
ssh keygen rsa to client
ssh config diffent
Network
centos 7 config net-tool debug ifconfig
debug network card up or down
Samba
samba install on centos 6
samba config example
VIM
VIM using example
本文档使用 MrDoc 发布
-
+
首页
samba install on centos 6
# samba install on centos 6 --- ## centos6 install samba servers - samba-client 客户端命令包 - samba-common 通用包 ## samba 服务端 # yum install samba samba-client samba-common -y # vim /etc/samba/smb.conf ```bash [global] workgroup = MFG server string = Samba Server Version %v log file = /var/log/samba/log.%m max log size = 500 security = user passdb backend = tdbsam cups options = raw [homes] comment = Home Directories browseable = no writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no printable = yes [backups] comment = Tester Backups path = /home/partimag valid users = backups writable = yes force group = tester create mask = 0660 directory mask = 7775 max connections = 50 [global] 全局选项 workgroup = MYGROUP 工作组 server string = Samba Server Version %v log file = /var/log/samba/log.%m max log size = 50 security = user 运行的安全级别 passdb backend = tdbsam 帐号密码以数据文件的形式存放 load printers = yes cups options = raw [homes] 用户家目录通用的共享,每个用户都可以完全访问自己的家目录 comment = Home Directories 共享资源的说明 browseable = no 是否可以被浏览 writable = yes 可写 [printers] 跟打印机相关的选项 comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes # useradd -s /sbin/nologin tom # smbpasswd -a tom 需要单独给用户设定访问samba密码 New SMB password: Retype new SMB password: Added user tom. ``` # /etc/rc.d/init.d/smb start # chkconfig smb on # smbclient -L //172.16.2.9 不指定用户, -L 列出指定的IP的samba共享 # smbclient -U tom -L //172.16.2.9 以tom的身份列出共享 使用命令挂载的方法访问 # mount -t cifs -o username=bean,password=123 //172.16.2.9/bean /mnt
Bobby
2021年12月21日 03:42
分享文档
收藏文档
阅读
119
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码