Skip to content

JiangWeiGitHub/Samba

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samba

Host Platform

  1. Ubuntu 16.04.1 server 64bit

Installation

  1. apt-get install samba
  2. smbd --version - 4.3.9-Ubuntu
  3. nmbd --version - 4.3.9-Ubuntu

Operating system requirements

  1. Check kernel support
  cat /boot/config-4.4.0-31-generic

  CONFIG_EXT4_FS_XATTR=y
  CONFIG_EXT4_FS_SECURITY=y
  CONFIG_EXT4_FS_POSIX_ACL=y

Note: "CONFIG_EXT4_FS_XATTR" is not found under Ubuntu 16.04.1.

File system support

  1. Modify /etc/fstab file
  sample:
  
  /dev/...          /srv/samba/demo          ext4          defaults,barrier=1          1 1

Note: The "barrier=1" option ensures that tdb transactions are safe against unexpected power loss.

Testing Filesystem

  Test for xattr:

  # touch test.txt
  # setfattr -n user.test -v test test.txt
  # setfattr -n security.test -v test2 test.txt
  
  # getfattr -d test.txt
  # file: test.txt
  user.test="test"
  
  # getfattr -n security.test -d test.txt
  # file: test.txt
  security.test="test2"
  Test for ACL:

  # touch test.txt
  # setfacl -m g:adm:rwx test.txt
  
  # getfacl test.txt
  # file: test.txt
  # owner: root
  # group: root
  user::rw-
  group::r--
  group:adm:rwx
  mask::rwx
  other::r--

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.2%
  • Python 7.3%
  • C++ 4.2%
  • Shell 1.8%
  • Roff 1.7%
  • Perl 1.5%
  • Other 0.3%