歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> 新手學堂:在Linux系統下建立Samba用戶

新手學堂:在Linux系統下建立Samba用戶

日期:2017/3/2 14:56:22   编辑:Linux基礎知識
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進行相關權限控制即可。

Copyright © Linux教程網 All Rights Reserved