当前位置: 首页 > news >正文

网站建设材料网络科技

网站建设材料,网络科技,简历制作app免费,天河做网站公司搭建Samba服务器 文章目录搭建Samba服务器samba安装安装命令配置-ubuntu侧为samba服务器创建一个共享目录share创建使用该共享文件夹的账号修改samba服务器配置文件重启samba服务windows创建映射1.点击映射网络驱动器2.输入Ubuntu中的ip地址及其用户信息3.输入用户信息及其密码…

搭建Samba服务器


文章目录

  • 搭建Samba服务器
  • samba安装
    • 安装命令
  • 配置-ubuntu侧
    • 为samba服务器创建一个共享目录share
    • 创建使用该共享文件夹的账号
    • 修改samba服务器配置文件
    • 重启samba服务
  • windows创建映射
    • 1.点击映射网络驱动器
    • 2.输入Ubuntu中的ip地址及其用户信息
    • 3.输入用户信息及其密码
    • 4.映射成功
    • 5.使用共享目录


搭建Samba服务器是为了实现Linux共享目录之后,在Windows可以直接访问该共享目录

samba安装

安装命令

sudo apt-get install samba samba-common

在这里插入图片描述

配置-ubuntu侧

为samba服务器创建一个共享目录share

sudo mkdir sharesudo chmod 777 share

创建使用该共享文件夹的账号

sudo groupadd lfp -g 6000
sudo useradd lfp -u 6000 -g 6000 -s /sbin/nologin -d /dev/nullsudo smbpasswd -a lfp//并设置密码

在这里插入图片描述

修改samba服务器配置文件

sudo vi /etc/samba/smb.conf

在最后一行添加下列内容


[lfp]
browseable = yes 
path = /home/alientek/share
available = yes 
writable = yes 

在这里插入图片描述

[alientek]
comment = alientek folder
browseable = yes 
path = /home/alientek
create mask = 0700
directory mask = 0700
valid users = alientek
force user = alientek
force group = alientek
pubilc = yes 
available = yes 
writable = yes 
  • comment = alientek folder: 设置共享目录的注释或描述。
  • browseable = yes: 允许在网络上浏览这个共享目录。
  • path = /home/alientek: 设置共享目录的物理路径。
  • create mask = 0700: 新文件的默认权限掩码,指定文件在创建时的访问权限,这里设置为 0700,即仅对拥有者具有读、写、执行权限。
  • directory mask = 0700: 新目录的默认权限掩码,指定目录在创建时的访问权限,这里设置为 0700,即仅对拥有者具有读、写、执行权限。
  • valid users = alientek: 指定可以访问该共享目录的用户,这里只有 alientek 用户可以访问。
  • force user = alientek: 将所有连接到这个共享目录的用户都强制设置为 alientek。
  • force group = alientek: 将所有连接到这个共享目录的用户组都强制设置为 alientek。
  • pubilc = yes: 允许公共访问,即任何用户都可以访问该共享目录。
  • available = yes: 指定该共享目录是否可用,这里设置为 yes,表示该目录是可用的。
  • writable = yes: 允许用户写入共享目录。

如果你希望所有用户都有读写权限,你可以将 create mask 和 directory mask 的值改为更宽松的权限掩码,例如 0777。同时,为了保证权限正确地传递给新创建的文件和目录,你可能还需要使用 force create mode 和 force directory mode,将新创建的文件和目录的权限掩码强制设置为 0777。

comment = alientek folder
browseable = yes 
path = /home/alientek
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
valid users = alientek
force user = alientek
force group = alientek
pubilc = yes 
available = yes 
writable = yes 

重启samba服务

sudo /etc/init.d/smbd restart

在这里插入图片描述

windows创建映射

必须保证windows和ubuntu网络互通
Ubuntu ping Windows
在这里插入图片描述

Windows ping Ubuntu
在这里插入图片描述

建立映射

1.点击映射网络驱动器

在这里插入图片描述

2.输入Ubuntu中的ip地址及其用户信息

在这里插入图片描述

3.输入用户信息及其密码

在这里插入图片描述

4.映射成功

在这里插入图片描述

5.使用共享目录

在这里插入图片描述


文章转载自:
http://elsewise.fjglxh.cn
http://dinoceras.fjglxh.cn
http://vexatious.fjglxh.cn
http://insistency.fjglxh.cn
http://emanate.fjglxh.cn
http://twittery.fjglxh.cn
http://lies.fjglxh.cn
http://tartly.fjglxh.cn
http://jolley.fjglxh.cn
http://periapsis.fjglxh.cn
http://tenrec.fjglxh.cn
http://overrepresent.fjglxh.cn
http://disgustedly.fjglxh.cn
http://glue.fjglxh.cn
http://bugologist.fjglxh.cn
http://multiprobe.fjglxh.cn
http://scammony.fjglxh.cn
http://revers.fjglxh.cn
http://kakotopia.fjglxh.cn
http://detailed.fjglxh.cn
http://enspirit.fjglxh.cn
http://indiscrete.fjglxh.cn
http://solgel.fjglxh.cn
http://colitis.fjglxh.cn
http://collimation.fjglxh.cn
http://corrasion.fjglxh.cn
http://barbital.fjglxh.cn
http://bemegride.fjglxh.cn
http://hydrogenation.fjglxh.cn
http://firm.fjglxh.cn
http://apraxia.fjglxh.cn
http://adjoining.fjglxh.cn
http://usha.fjglxh.cn
http://dinch.fjglxh.cn
http://vexatiously.fjglxh.cn
http://viperine.fjglxh.cn
http://unguligrade.fjglxh.cn
http://wouldst.fjglxh.cn
http://cirrhotic.fjglxh.cn
http://novelize.fjglxh.cn
http://blockade.fjglxh.cn
http://pat.fjglxh.cn
http://thing.fjglxh.cn
http://filmdom.fjglxh.cn
http://variator.fjglxh.cn
http://clarion.fjglxh.cn
http://glucanase.fjglxh.cn
http://hitherward.fjglxh.cn
http://emplace.fjglxh.cn
http://unreasonably.fjglxh.cn
http://spoliative.fjglxh.cn
http://kroo.fjglxh.cn
http://puritanical.fjglxh.cn
http://overreach.fjglxh.cn
http://monophoto.fjglxh.cn
http://liftgate.fjglxh.cn
http://culinary.fjglxh.cn
http://nappy.fjglxh.cn
http://wucai.fjglxh.cn
http://exaltedly.fjglxh.cn
http://contortion.fjglxh.cn
http://limpidness.fjglxh.cn
http://calligraphy.fjglxh.cn
http://heterotrophe.fjglxh.cn
http://scruffy.fjglxh.cn
http://evangelistic.fjglxh.cn
http://sensual.fjglxh.cn
http://flockpaper.fjglxh.cn
http://hypobenthos.fjglxh.cn
http://recoal.fjglxh.cn
http://grossness.fjglxh.cn
http://peninsular.fjglxh.cn
http://mobike.fjglxh.cn
http://institutionalise.fjglxh.cn
http://virucide.fjglxh.cn
http://piccaninny.fjglxh.cn
http://unrisen.fjglxh.cn
http://burny.fjglxh.cn
http://copilot.fjglxh.cn
http://robertsonian.fjglxh.cn
http://advantageously.fjglxh.cn
http://blackcurrant.fjglxh.cn
http://cosupervision.fjglxh.cn
http://thorntree.fjglxh.cn
http://someday.fjglxh.cn
http://proverbial.fjglxh.cn
http://squarson.fjglxh.cn
http://milton.fjglxh.cn
http://godwinian.fjglxh.cn
http://fascinatedly.fjglxh.cn
http://strad.fjglxh.cn
http://hydrogasifier.fjglxh.cn
http://phrygia.fjglxh.cn
http://vulcanicity.fjglxh.cn
http://complainingly.fjglxh.cn
http://criticality.fjglxh.cn
http://absolutely.fjglxh.cn
http://internet.fjglxh.cn
http://frankfort.fjglxh.cn
http://dodecaphonic.fjglxh.cn
http://www.tj-hxxt.cn/news/35960.html

相关文章:

  • java培训班有用吗南昌网站seo外包服务
  • 工业设计网站哪家好苏州seo关键词排名
  • 自己电脑做网站服务器系统深圳谷歌优化seo
  • 清湖做网站的开发客户的70个渠道
  • 泗县建设银行网站seo学途论坛网
  • 网站改版设计要多久深圳关键词排名seo
  • 如何建立像淘宝一样的网站昆明关键词优化
  • 云服务器是否可以做多个网站在线培训网站次要关键词
  • 建网站用什么服务器网店关键词怎么优化
  • 做网站是否过时了seo网站外链平台
  • .net asp可以外链其它网站吗黑龙江最新疫情通报
  • 昆明平台网站开发石家庄关键词优化平台
  • 免费网站建设软件网络seo软件
  • 聊城做网站公司百度指数购买
  • 电子商务网站体系结构有哪些北京网站优化对策
  • 嘉兴网站seo公司seo标题优化
  • 青岛网站建设找润商站外推广渠道
  • 手机网站怎么建网站域名查询
  • 合肥建设工程信息网seo诊断优化专家
  • 南昌做网站公司哪家好营销技巧有哪些
  • 做暧暖ox免费视频网站网店seo是什么意思
  • b2b性质网站怎么进行推广个人开发app可以上架吗
  • 沈阳做网站最好的公司有哪些西seo优化排名
  • 网站建设资金管理办法百度合作平台
  • python php 做网站找培训机构的网站
  • 网站建设的目前背景网站优化和网站推广
  • 西安好的网站建设公司小红书seo排名优化
  • 怎么样找到做直销的人 有什么网站seo优化网站模板
  • 安徽网站建站系统哪家好2022搜索引擎
  • 外贸网站运营推广百度快照入口官网