[Samba] Permission issues

Michel Drozdz md at korhal.net
Sun Dec 7 08:35:45 MST 2014


Hi there

 
I've installed a test-VM with Debian Wheezy (7.7) and used this tutorial to set up a test-lab for samba4:

http://mark.orbum.net/2014/02/22/compiling-samba-4-on-debian-wheezy-active-directory-domain-controllers-ho/

 
Its working for now, but the part with the home-share (just a simple share for profiles etc.) is not working.

I cant even browse with the administrator at domain logged in to this share; the error says something about "Element not found".

 
Some infos about the environment:

 
root at samba4:~# smbclient -V
Version 4.1.4

 
root at samba4:~# smbclient -L localhost -U Administrator
Enter Administrator's password: 
Domain=[KORHAL] OS=[Unix] Server=[Samba 4.1.4]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Samba 4.1.4)
        home            Disk      
        sysvol          Disk      
        netlogon        Disk      
Domain=[KORHAL] OS=[Unix] Server=[Samba 4.1.4]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------

 
 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=eda48b2a-5977-4651-a735-807ca9056802 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=85fa9bba-a546-43d8-bea1-75f84018b5c3 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

UUID=875f1e47-9bf8-4d25-b629-fb777bb183b7       /disk2          ext4    user_xattr,acl,barrier=1        1 1

 
root at samba4:~# df -h
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                   19G  2.0G   16G  11% /
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   396M  188K  396M   1% /run
/dev/disk/by-uuid/eda48b2a-5977-4651-a735-807ca9056802   19G  2.0G   16G  11% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   967M     0  967M   0% /run/shm
/dev/sdb1                                               9.9G  151M  9.2G   2% /disk2

 
 
root at samba4:~# ls -lh /

drwx-----T   3 root users 4.0K Dec  7 13:44 disk2

 
smb.conf

 
# Global parameters
[global]
        workgroup = KORHAL
        realm = SAMBA4.KORHAL.NET
        netbios name = SAMBA4
        server role = active directory domain controller
        dns forwarder = 192.168.0.1
        idmap_ldb:use rfc2307 = yes

[netlogon]
        path = /usr/local/samba/var/locks/sysvol/samba4.korhal.net/scripts
        read only = No

[sysvol]
        path = /usr/local/samba/var/locks/sysvol
        read only = No


[home]
        path = /disk2
        read only = no
        writeable = yes
        create mask = 755
        directory mask = 755
        #valid users = Administrator
        browseable = yes
        guest ok = yes
        public = yes

 
I've tried several thing with "guest" and "public", but im not able to use this share, neither as administrator nor a test user "user01".

 
This is the machine i'm connecting from:

root at samba4:~# smbstatus

Samba version 4.1.4
PID     Username      Group         Machine                        
-------------------------------------------------------------------
3033      root          users         192.168.0.126 (ipv4:192.168.0.126:60296)

Service      pid     machine       Connected at
-------------------------------------------------------
home         3033   192.168.0.126  Sun Dec  7 13:53:39 2014

 
I dont really understand where and how samba is linking its ntfs-permissions i've set through the win rsat tools onto the linux file-level hierarchy.

 
Could someone please give me advice for this problem, thank you very much!

 
md


 


More information about the samba mailing list