Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools Remote Samba #46

Open
junxnone opened this issue Jun 12, 2019 · 0 comments
Open

Tools Remote Samba #46

junxnone opened this issue Jun 12, 2019 · 0 comments

Comments

@junxnone
Copy link
Owner

junxnone commented Jun 12, 2019

samba

  • 文件共享服务

Install & Setup

  • Install samba
sudo apt install -y samba smbclient
  • Setup - add share folder
sudo vi /etc/samba/smb.conf
[share]
   comment = share folder
   browseable = yes
   writable = yes
   path = /home/xxx/share
   create mask = 0777
   directory mask = 0777
   valid users = xxx
   force user = nobody
   force group = nogroup
   public = yes
   available = yes

不使用密码 guest ok = yes

  • set user samba password
sudo smbpasswd -a xxx
  • restart samba service
sudo systemctl restart smbd.service

Login

Windows 带有域名

  • 如果我们在带有域名的前提下输入用户名,是无法通过验证的,所以我们需要在用户名前加一个\符号 - \user_1

Windows 多用户登录同一server

  • windows 不允许 多用户名密码 同时登录同一server
  • 重新登录前需要 cmd -> net use * /del /y
  • 或者 需要两个用户同时使用的目录使用 valid users = user_1 user_2

Ubuntu

安装cifs支持

sudo apt-get install cifs-utils
sudo mount -t cifs //xxxx.xxx.xxx.xxx/share /your/path/ -o username=xxx,password=xxx

Reference

@junxnone junxnone transferred this issue from junxnone/tio Jul 17, 2019
@junxnone junxnone transferred this issue from junxnone/wiki Jul 24, 2019
@junxnone junxnone changed the title Ubuntu Samba 配置 Ubuntu Samba Sep 22, 2021
@junxnone junxnone changed the title Ubuntu Samba Linux Samba Sep 22, 2021
@junxnone junxnone transferred this issue from junxnone/Linux_archive Sep 22, 2021
@junxnone junxnone changed the title Linux Samba Linux Tools Samba Dec 20, 2022
@junxnone junxnone transferred this issue from junxnone/techwiki Dec 20, 2022
@junxnone junxnone changed the title Linux Tools Samba Tools Samba Dec 21, 2022
@junxnone junxnone changed the title Tools Samba Tools Remote Samba Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant