Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## server smb.conf:
- # PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
- # This configuration file was autogenerated
- # by Openfiler. Any manual changes will be overwritten
- # Generated at: Tue Oct 5 2:40:02 BST 2010
- # Global settings
- [global]
- workgroup = GEURTSCASS
- server string = file
- netbios name = FILE
- password server =
- realm =
- ; interfaces = 192.168.12.2/24 192.168.13.2/24
- ; remote announce = 92.168.1.255 192.168.2.44
- ; domain logons = yes
- log file = /var/log/samba/%m.log
- max log size = 0
- ; hosts deny = all
- map to guest = Bad User
- guest account = ofguest
- display charset = LOCALE
- unix charset = UTF-8
- dos charset = CP850
- ldap ssl = no
- ldap admin dn = dc=file,dc=geurtscass,dc=com
- ldap suffix = dc=geurtscass,dc=com
- encrypt passwords = yes
- security = server
- passdb backend = ldapsam:ldap://127.0.0.1
- ldap user suffix = ou=People
- ldap group suffix = ou=Group
- smb passwd file = /etc/samba/smbpasswd
- unix password sync = yes
- passwd program = /usr/bin/passwd %u
- passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*token
- s*updated*successfully*
- pam password change = yes
- ; username map = /etc/samba/smbusers
- obey pam restrictions = yes
- load printers = no
- domain master = no
- local master = yes
- preferred master = yes
- os level = 65
- inherit owner = yes
- [home]
- comment = family share
- path = /mnt/raid5/of_1/home
- read only = no
- writeable = yes
- oplocks = yes
- level2 oplocks = yes
- force security mode = 0
- dos filemode = no
- dos filetime resolution = no
- dos filetimes = no
- fake directory create times = no
- browseable = yes
- csc policy = manual
- share modes = yes
- veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
- veto files = /*:Zone.Identifier:*/
- create mode = 0770
- directory mode = 2770
- printable = no
- guest ok = no
- hosts allow = 192.168.100.0/25
- hosts readonly allow =
- store dos attributes = yes
- map acl inherit = yes
- </smb.conf>
- [root@file Videos]# ls -al /mnt/raid5/of_1/home
- total 72
- drwxrws--- 8 nobody parents 4096 Oct 5 13:40 .
- drwxr-xr-x 8 root root 4096 Oct 4 15:40 ..
- drwxrws--- 6 nobody parents 4096 Apr 10 19:24 Audio
- -rw-r----- 1 nobody parents 0 Oct 5 13:40 Djerk << created by fstab user
- -rwxrw---- 1 nobody parents 17 Oct 5 12:37 Djerk_ << created by gnome user
- </server permissions>
- ## users view:
- djerkg@david:~$ ls -la /mnt/home/
- total 16
- drwxrws---+ 8 djerkg parents 0 2010-10-05 13:40 .
- drwxr-xr-x 3 root root 4096 2010-10-04 17:47 ..
- drwxrws---+ 6 djerkg parents 0 2010-04-10 19:24 Audio
- -rw-r-----+ 1 djerkg parents 0 2010-10-05 13:40 Djerk
- -rwxrw----+ 1 djerkg parents 17 2010-10-05 12:37 Djerk_
- </user permissions>
- djerkg@david:~$ chmod 660 /mnt/home/Djerk
- chmod: changing permissions of `/mnt/home/Djerk': Permission denied
- ## fstab mount:
- djerk@david:~$ sudo mount /mnt/home -v
- 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=********
- ## fstab line:
- //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
- ## mount:
- djerk@david:~$ mount
- /dev/mapper/david-root on / type ext4 (rw,errors=remount-ro)
- proc on /proc type proc (rw,noexec,nosuid,nodev)
- none on /sys type sysfs (rw,noexec,nosuid,nodev)
- none on /sys/fs/fuse/connections type fusectl (rw)
- none on /sys/kernel/debug type debugfs (rw)
- none on /sys/kernel/security type securityfs (rw)
- none on /dev type devtmpfs (rw,mode=0755)
- none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
- none on /dev/shm type tmpfs (rw,nosuid,nodev)
- none on /var/run type tmpfs (rw,nosuid,mode=0755)
- none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
- none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
- none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
- /dev/sda1 on /boot type ext2 (rw)
- //file/home on /mnt/home type cifs (rw,mand)
- djerk@david:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement