[Samba] net ADS join MEMBER

Bob Wyatt bwyatt_sub at comcast.net
Thu Mar 26 20:08:52 UTC 2020

From: Rowland penny <rpenny at samba.org> 
Sent: Saturday, February 29, 2020 8:48 AM
To: sambalist <samba at lists.samba.org>
Subject: Re: [Samba] net ADS join MEMBER

On 28/02/2020 23:22, Bob Wyatt wrote:
> Hi, Rowland,
> Joined the domain successfully.
> Winbindd and smbd started without error.
> Cannot access a share - reports "The mapped network drive could not be created because the following error has occurred: A device attached to the system is not functioning." Attached if preferred.

There are several problems with your shares.

You have 'guest ok = yes' in a few of them, but guest access will still 
be denied because you do not have 'map to guest = bad user' in [global].

In one share you have 'valid users' and 'guest ok = yes', but this can 
never work (even after you fix the 'map to guest' problem) because the 
user 'nobody' (or whoever the guest user is on AIX) is not in the 'valid 


Rowland, the above recommendations were implemented; shares no longer used have been deleted.


If this was using an ext4 filesystem (or similar), I would suggest 
adding 'vfs_objects = acl_xattr' to [global], but this is jfs2 on AIX. A 
bit of investigation turned up 'vfs_aixacl2' which I think will do the 
same thing, try running 'man vfs_aixacl2', if this doesn't work, see 

If it does work similar to 'vfs_acl_xattr', you should be able to set 
the permissions from Windows (I am taking it that you do have Windows 
clients) and remove the 'valid users' etc.


Unfortunately, man on vfs_aixacl2 is not fruitful.

The fossies reference dates back to 2013, so not sure which portions of it, if any, remain valid today. This (documentation) has been somewhat of a struggle on my part, as most of the documentation still says Samba3. As you once suggested, I’d be better off forgetting everything I knew (which wasn't much) about Samba3. Knowing which part of the "older" documentation still applies is, well, a mystery.

With Samba4 for AIX as distributed by IBM, these man pages are available:


These "file system" acl libraries are available:


There are no *nfs*.so files on the system.

I'm starting to "fear" it is time to uninstall the Samba from IBM and go with Samba from Samba.
Did see the Samba+ page, but am unsure if 
We are using IBM's version of OpenSSH, so that would have to be investigated as well...

Unless, of course, you have more sage advice you're willing to share.

After the adjustments to the smb.conf file, whether guest or as a user, access to Samba shares remains elusive.

The current config file:

        workgroup = workgroup
        realm = WORKGROUP.COM
        server string = Samba Server Version %v
        interfaces = lo eth0
        case sensitive = Yes
        hide dot files = No
    idmap config * : backend        = tdb
    idmap config * : range          = 20000-20499
    idmap config boost : backend     = rid
    idmap config boost : range       = 10000 - 11999
        username map = /etc/samba/user.map
        map to guest = bad user
        log file = /var/log/samba/log.%m
        max log size = 50
        security = ADS
        passdb backend = tdbsam
        encrypt passwords = yes
        deadtime = 15
        local master = no
        load printers = no
        cups options = raw

#============================ Share Definitions ==============================
        comment = Home Directories
        browseable = no
        writable = yes
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes
# Un-comment the following and create the netlogon directory for Domain Logons:
;       [netlogon]
;       comment = Network Logon Service
;       path = /var/lib/samba/netlogon
;       guest ok = yes
;       writable = no
;       share modes = no
        comment = Spooled Files
        path = /spool
        read only = No
        create mask = 0666
        guest ok = Yes
        path = /UVDATA/SEI.II/SEI.BP
    valid users = kth,4kth,p9n,alb,arp,bobwyatt,lac,jlk,apn
        read only = No
        comment = MS/MSBP file
        path = /UVDATA/MSP/MS_MSBP/MS_MSBP
        valid users = lac,alb,arp,jlk,p9n,apn
        read only = No
        path = /shumsky/SEI.II/SEI.II/TEST.BP
        valid users = mh,arp,p9n,apn
        read only = No
        comment = archive directory
        path = /common/archives
        valid users = kth,4kth,bobwyatt,lac,arp,snc,bam,ksd,ftp,sap,administrator,smbshum,edr,cmr,jlh
        admin users = arp,lac,p9n,apn
        read only = No
        create mask = 0776
        directory mask = 0776
        inherit permissions = Yes
        path = /tmp
        printable = Yes
        path = /UVDATA/common/HOW.TO
        valid users = arp
        read only = No
        path = /
        valid users = arp,p9n,apn
        read only = No
        create mask = 0774
        path = /UVDATA/spool
        guest ok = Yes
        path = /UVDATA/common/ediin/nova_orders
        path = /UVDATA/common/SH.BP
        valid users = arp,alb,lac,jlk,p9n,apn
        read only = No


Thanks for everything Rowland!

Bob Wyatt

More information about the samba mailing list