本文共 1162 字,大约阅读时间需要 3 分钟。
If you are using Samba Server on your network, you will want to create users that have access to use it. There’s a very simple command structure on how to do so.
如果您在网络上使用Samba服务器,则将要创建有权使用它的用户。 关于如何执行操作,有一个非常简单的命令结构。
I’m assuming that you’ve already at this point.
我假设此时您已经 。
There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.
创建用户有两个步骤。 首先,我们将运行smbpasswd实用程序为用户创建一个samba密码。
sudo smbpasswd -a <username>
sudo smbpasswd -a <用户名>
Next, we’ll add that username to the smbusers file.
接下来,我们将该用户名添加到smbusers文件中。
sudo gedit /etc/samba/smbusers
须藤gedit / etc / samba / smbusers
Add in the following line, substituting the username with the one you want to give access to. The format is <ubuntuusername> = “<samba username>”. You can use a different samba user name to map to an ubuntu account, but that’s not really necessary right now.
添加以下行,用要授予访问权限的用户名替换用户名。 格式为<ubuntuusername> =“ <samba用户名>”。 您可以使用其他samba用户名来映射到ubuntu帐户,但是现在并没有必要。
<username> = “<username>”
<用户名> =“ <用户名>”
Now you can create samba shares and give access to the users that you listed here.
现在,您可以创建samba共享并向您在此处列出的用户授予访问权限。
翻译自:
转载地址:http://ohcwd.baihongyu.com/