步骤一:
在服务器server0发布Samba共享文件夹
1)安装软件包samba
1. [root@server0 ~]# yum -y install samba
2)创建共享账号
添加共享账号harry,密码为migwhisk:
1 [root@server0 ~]# useradd harry
2. [root@server0 ~]# pdbedit -a harry //根据提示设好密码migwhisk
3. new password:
4. retype new password:
添加共享账号kenji,密码为atenorth:
5. [root@server0 ~]# useradd kenji
6. [root@server0 ~]# pdbedit -a kenji //根据提示设好密码atenorth
7. new password:
8. retype new password:
添加共享账号chihiro,密码为atenorth:
9. [root@server0 ~]# useradd chihiro
10. [root@server0 ~]# pdbedit -a chihiro //根据提示设好密码atenorth
11. new password:
12. retype new password:
确认共享账号:
13. [root@server0 ~]# pdbedit -L
14. harry:1003:
15. chihi