益友网(http://www.1uu2.com) 做linux用户的良师益友、linux操作系统命令教程

当前位置: 益友网 > Linux常识 > 文章正文

在Linux系统下建立Samba用户

发表于 2008-06-26 21:28 | 来源: | 阅读 756 次

1.在Linux先建立系统用户
adduser liuj
Tgroup:/etc/samba# adduser liuj

adduser: Couldn’t parse `/etc/adduser.conf’, line 13.

Adding user `liuj’ …

Adding new user `liuj’ (1010) with group `smbgrp’ …

Creating home directory `/home/users/liuj’ …

Copying files from `/etc/skel’ …

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

Changing the user information for liuj

Enter the new value, or press ENTER for the default

Full Name []: liuj

Room Number []: 301

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [y/N] y
2.之后调用/etc/samba/smbpasswd -a liuj
New SMB password:

Retype new SMB password:

Added user liuj.
3.再查看smbpasswd文件,可以发现一个新的用户添加到文本中。
在smb.conf进行相关权限控制即可。

关键字: ,
喜欢益友网的文章,那就通过 RSS Feed 功能订阅阅读吧!

我要评论

*

* 绝不会泄露



返回首页 | 关于我们 | 联系我们 | 广告合作 | 网站地图 | 友情链接 | 版权声明 |