码迷,mamicode.com
首页 > 其他好文 > 详细

samba文件共享

时间:2017-04-18 19:59:10      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:samba文件共享

安装yum库

安装samba

yum install samba -y

添加两个组

groupadd market

groupadd it

usradd -g market jobs -s /bin/false

usradd -g it dell -s /bin/false

smbpasswd -a jobs

smbpasswd -a dell

useradd bill

smbpasswd -a bill

usermod -a -G market bill

usermod -a -G it bill

mkdir /home/it

mkdir /home/market

ls -ld /home/it /home/market/

chgrp it /home/it

chgrp market /home/market

ls -ld /home/it /home/market/

chmod 3770 /home/it/

chmod 3770 /home/market/

ls -ld /home/it /home/market/

mkdir /software

mkdir /tmpupload

mkdir /tmpupload

chmod 77 /tmpupload/

chmod a+t /tmpupload/

vi /etc/samba/smb.conf

技术分享

service smb start

chkconfig smb on


samba文件共享

标签:samba文件共享

原文地址:http://12372297.blog.51cto.com/12362297/1917144

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!