0


ubuntu samba share

setp 1: Install depend dev pakage

sudoaptinstall python3-samba samba-common
sudoaptinstallvim

setp 2: Add user for sambashare

sudo adduser <yourname> sambashare

setp 3: Set your sambashare password

sudo smbpasswd -a<yourname>

setp 4: Edit samba config

sudovim /etc/samba/smb.conf

add : ( the file end )

[Share]
  path = /home/<yourname>/<your_share_folder>
  available =yes
  browseable =yes
  public =yes
  writable =yes
  valid users=<yourname>
  create mask = 0700
  directory mask = 0700
  force user = nobody
  force group = nogroup

use

wq

save Edit !

setp 5: Restart computer

sudoreboot
Tips: or restart samba services !! use this common
sudoservice smbd restart &&service nmbd restart

setp 6: Test sambashare

Use your other computer to test sambashare!!!

Eg : system is

ubuntu
smb://<your host computer of sambashare ip>/<your sambashare folder>
Done !!!
标签: ubuntu postgresql linux

本文转载自: https://blog.csdn.net/zc15210073939/article/details/132278506
版权归原作者 JR_Sim 所有, 如有侵权,请联系我们删除。

“ubuntu samba share”的评论:

还没有评论