概述: 文件共享服务器,适合做公司的共享,对win友好

常用指令

Linux下挂载samba

  1. #guest使用 -o guest
  2. mount -t cifs -o username=user,password=pass,vers=1.0 //1.1.1.1/Public/ /mnt/pan

快速启动(使用docker)

镜像地址:https://hub.docker.com/r/dperson/samba/

  1. docker run -it --name samba -p 139:139 -p 445:445 \
  2. -v /data/samba/samba_data:/mount \
  3. -d docker.io/dperson/samba \
  4. -u "qa;111" \
  5. -u "design;222" \
  6. -u "market;333" \
  7. -u "dev;444" \
  8. -u "ops;555" \
  9. -p \
  10. -s "Public;/mount/Shared;yes;no;yes;all;none;all" \
  11. -s "Market;/mount/Market;yes;no;no;market,design;ops;market,design" \
  12. -s "Design;/mount/Design;yes;no;no;design,market;ops;design,market" \
  13. -s "DEV;/mount/DEV;no;no;no;dev;dev;dev" \
  14. -s "OPS;/mount/OPS;no;no;no;ops;ops;ops" \
  15. -s "QA;/mount/QA;yes;no;no;qa;qa;qa" \
  16. -g "log level = 2"