SHARE
TWEET

Untitled

a guest Jun 19th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## server smb.conf:
  2.  
  3.  
  4. # PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
  5. #       This configuration file was autogenerated
  6. #       by Openfiler. Any manual changes will be overwritten
  7. #       Generated at: Tue Oct 5 2:40:02 BST 2010
  8.  
  9. # Global settings
  10. [global]
  11.  
  12. workgroup = GEURTSCASS
  13. server string = file
  14. netbios name = FILE
  15. password server =
  16. realm =
  17. ; interfaces = 192.168.12.2/24 192.168.13.2/24
  18. ; remote announce = 92.168.1.255 192.168.2.44
  19. ; domain logons = yes
  20. log file = /var/log/samba/%m.log
  21. max log size = 0
  22. ; hosts deny = all
  23. map to guest = Bad User
  24. guest account = ofguest
  25. display charset = LOCALE
  26. unix charset = UTF-8
  27. dos charset = CP850
  28. ldap ssl = no
  29. ldap admin dn = dc=file,dc=geurtscass,dc=com
  30. ldap suffix = dc=geurtscass,dc=com
  31. encrypt passwords = yes
  32. security = server
  33. passdb backend = ldapsam:ldap://127.0.0.1
  34. ldap user suffix = ou=People
  35. ldap group suffix = ou=Group
  36. smb passwd file = /etc/samba/smbpasswd
  37. unix password sync = yes
  38. passwd program = /usr/bin/passwd %u
  39. passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*token
  40. s*updated*successfully*
  41. pam password change = yes
  42. ; username map = /etc/samba/smbusers
  43. obey pam restrictions = yes
  44. load printers = no
  45. domain master = no
  46. local master = yes
  47. preferred master = yes
  48. os level = 65
  49. inherit owner = yes
  50.  
  51.  
  52. [home]
  53.         comment = family share
  54.         path = /mnt/raid5/of_1/home
  55.         read only = no
  56.         writeable = yes
  57.         oplocks = yes
  58.         level2 oplocks = yes
  59.         force security mode = 0
  60.         dos filemode = no
  61.         dos filetime resolution = no
  62.         dos filetimes = no
  63.         fake directory create times = no
  64.         browseable = yes
  65.         csc policy = manual
  66.         share modes = yes
  67.         veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
  68.         veto files = /*:Zone.Identifier:*/
  69.         create mode = 0770
  70.         directory mode = 2770
  71.         printable = no
  72.         guest ok = no
  73.         hosts allow =  192.168.100.0/25
  74.         hosts readonly allow =
  75.         store dos attributes = yes
  76.         map acl inherit = yes
  77. </smb.conf>
  78.  
  79. [root@file Videos]# ls -al /mnt/raid5/of_1/home
  80. total 72
  81. drwxrws---   8 nobody parents 4096 Oct  5 13:40 .
  82. drwxr-xr-x   8 root   root    4096 Oct  4 15:40 ..
  83. drwxrws---   6 nobody parents 4096 Apr 10 19:24 Audio
  84. -rw-r-----   1 nobody parents    0 Oct  5 13:40 Djerk << created by fstab user
  85. -rwxrw----   1 nobody parents   17 Oct  5 12:37 Djerk_ << created by gnome user
  86. </server permissions>
  87.  
  88. ## users view:
  89. djerkg@david:~$ ls -la /mnt/home/
  90. total 16
  91. drwxrws---+  8 djerkg parents    0 2010-10-05 13:40 .
  92. drwxr-xr-x   3 root   root    4096 2010-10-04 17:47 ..
  93. drwxrws---+  6 djerkg parents    0 2010-04-10 19:24 Audio
  94. -rw-r-----+  1 djerkg parents    0 2010-10-05 13:40 Djerk
  95. -rwxrw----+  1 djerkg parents   17 2010-10-05 12:37 Djerk_
  96. </user permissions>
  97.  
  98. djerkg@david:~$ chmod 660 /mnt/home/Djerk
  99. chmod: changing permissions of `/mnt/home/Djerk': Permission denied
  100.  
  101. ## fstab mount:
  102. djerk@david:~$ sudo mount /mnt/home -v
  103.  
  104. mount.cifs kernel mount options: unc=//file\home,ver=1,rw,noauto,iocharset=utf8,umask=002,nobrl,username=djerkg,file_mode=0666,dir_mode=0777,uid=1001,gid=1002,ip=192.168.100.10,pass=********
  105.  
  106. ## fstab line:
  107. //file/home /mnt/home cifs iocharset=utf8,noauto,nobrl,uid=1001,gid=1002,username=djerkg,password=******,file_mode=0666,dir_mode=0777,rw 0 0
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top