博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用Samba共享Ubuntu Home目录
阅读量:2518 次
发布时间:2019-05-11

本文共 1826 字,大约阅读时间需要 6 分钟。

Samba Server allows you to share the home directories of users automatically. This can be useful so that you don’t have to manually create every share for every user.

Samba服务器允许您自动共享用户的主目录。 这很有用,因此您不必为每个用户手动创建每个共享。

First, make sure that you’ve .

首先,请确保已。

To share the home directories, open up smb.conf with the following command:

要共享主目录,请使用以下命令打开smb.conf:

sudo gedit /etc/samba/smb.conf

须藤gedit /etc/samba/smb.conf

Find this section of the file, and make it match the following:

查找文件的此部分,并使其与以下内容匹配:

#======================= Share Definitions =======================

#=======================共享定义=======================

# Un-comment the following (and tweak the other settings below to suit) # to enable the default home directory shares. This will share each # user’s home directory as \\server\username [homes] comment = Home Directories browseable = yes

#取消注释以下内容(并调整以下其他设置以适合)#启用默认主目录共享。 这会将每个#用户的主目录共享为\\ server \ username [homes]注释=可浏览的主目录=是

# By default, \\server\username shares can be connected to by anyone # with access to the samba server. Un-comment the following parameter # to make sure that only “username” can connect to \\server\username valid users = %S

#默认情况下,有权访问samba服务器的任何人都可以连接\\ server \ username共享。 取消注释以下参数#以确保只有“用户名”可以连接到\\ server \ username有效用户=%S

# By default, the home directories are exported read-only. Change next # parameter to ‘yes’ if you want to be able to write to them. writable = yes

#默认情况下,主目录是只读导出的。 如果您希望能够将其下一个#参数更改为“是”。 可写=是

Now you should be able to map a drive on windows using the following share format:

现在,您应该可以使用以下共享格式在Windows上映射驱动器:

\\ubuntumachine\username

\\ ubuntumachine \用户名

For example, if the Ubuntu machine is named ubuntuserv, and the username is geek, your share path would be \\ubuntuserv\geek

例如,如果Ubuntu计算机名为ubuntuserv,用户名为geek,则共享路径将为\\ ubuntuserv \ geek

翻译自:

转载地址:http://ehlwd.baihongyu.com/

你可能感兴趣的文章
经典排序算法回顾:选择排序,快速排序
查看>>
BZOJ2213 [Poi2011]Difference 【乱搞】
查看>>
c# 对加密的MP4文件进行解密
查看>>
AOP面向切面编程C#实例
查看>>
Win form碎知识点
查看>>
避免使用不必要的浮动
查看>>
第一节:ASP.NET开发环境配置
查看>>
sqlserver database常用命令
查看>>
rsync远程同步的基本配置与使用
查看>>
第二天作业
查看>>
访问属性和访问实例变量的区别
查看>>
Spring MVC 异常处理 - SimpleMappingExceptionResolver
查看>>
props 父组件给子组件传递参数
查看>>
【loj6038】「雅礼集训 2017 Day5」远行 树的直径+并查集+LCT
查看>>
十二种获取Spring的上下文环境ApplicationContext的方法
查看>>
UVA 11346 Probability 概率 (连续概率)
查看>>
linux uniq 命令
查看>>
Openssl rand命令
查看>>
HDU2825 Wireless Password 【AC自动机】【状压DP】
查看>>
BZOJ1015: [JSOI2008]星球大战starwar【并查集】【傻逼题】
查看>>