博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Ubuntu上创建Samba用户
阅读量:2512 次
发布时间:2019-05-11

本文共 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/

你可能感兴趣的文章
windows 10 & Office 2016 安装
查看>>
最短路径(SP)问题相关算法与模板
查看>>
js算法之最常用的排序
查看>>
Python——交互式图形编程
查看>>
经典排序——希尔排序
查看>>
团队编程项目作业2-团队编程项目代码设计规范
查看>>
英特尔公司将停止910GL、915GL和915PL芯片组的生产
查看>>
团队编程项目作业2-团队编程项目开发环境搭建过程
查看>>
Stax解析XML示例代码
查看>>
cookie
查看>>
二级图片导航菜单
查看>>
<Using parquet with impala>
查看>>
07-Java 中的IO操作
查看>>
uclibc,eglibc,glibc之间的区别和联系【转】
查看>>
Java魔法堂:找外援的利器——Runtime.exec详解
查看>>
mysql数据库存放路径
查看>>
TestNG(五)常用元素的操作
查看>>
解决 Visual Studio 点击添加引用无反应的问题
查看>>
通过镜像下载Android系统源码
查看>>
python字符串格式化 %操作符 {}操作符---总结
查看>>