AIX Open Source

 View Only
  • 1.  samba share file permission in smb.conf with AD integration

    Posted Tue September 06, 2022 11:48 PM
    Hi,
    I have configured samba 4.14 with AD integration in our AIX dev servers and test servers. It is samba with AD integration. All AD users can access samba share fine, but not able to copy or write to samba share, getting permission denied errors. Even though file and dir permissions are 775. Below are my smb.conf file output and the share output.


    hdadisa01:/Landing # ls -la
    total 96
    drwxrwxr-x 24 dsadm1 dstage 4096 Aug 31 22:55 .
    drwxr-xr-x 65 root system 8192 Sep 6 17:54 ..
    drwxrwxr-x 12 dsadm1 dstage 4096 Dec 14 2018 CIM
    drwxrwxr-x 2 dsadm1 dstage 4096 Aug 15 2017 Calendar_Extension_Dimension
    drwxrwxr-x 41 dsadm1 dstage 4096 Oct 7 2021 ConformDimensions
    drwxrwxr-x 4 dsadm1 dstage 256 Oct 24 2014 Corporate
    drwxrwxr-x 4 dsadm1 dstage 256 Apr 21 2015 HDFSCRM
    drwxrwxr-x 4 dsadm1 dstage 256 Sep 18 2017 HDFSCommercial
    drwxrwxr-x 19 dsadm1 dstage 4096 Sep 15 2021 HDFSInsurance
    drwxrwxr-x 4 dsadm1 dstage 256 Nov 20 2017 HDFSLoanMgmt
    drwxrwxr-x 4 dsadm1 dstage 256 Feb 7 2019 HDFSMaintenance
    drwxrwxr-x 7 dsadm1 dstage 256 Jun 17 06:35 HDFSRetail
    drwxrwxr-x 3 dsadm1 dstage 256 Aug 4 2017 HDFSSnapshot
    drwxrwxr-x 4 dsadm1 dstage 256 Dec 29 2021 HDFSVendorIntg
    drwxrwxr-x 15 dsadm1 dstage 4096 Jun 15 06:23 Integrations
    drwxrwxr-x 6 dsadm1 dstage 4096 Jul 31 2019 MDM
    drwxrwxr-x 15 dsadm1 dstage 4096 Jan 7 2022 Marketing
    drwxrwxr-x 11 dsadm1 dstage 4096 Mar 1 2018 PerformanceReporting
    drwxrwxr-x 3 dsadm1 dstage 256 Aug 4 2017 QualityDataAnalysis
    drwxrwxr-x 9 dsadm1 dstage 4096 Aug 25 2021 Sales
    drwxrwxr-x 3 dsadm1 dstage 256 Aug 4 2017 Utility
    drwxrwxr-x 4 dsadm1 dstage 256 Jul 21 05:57 datastage
    drwxrwxr-x 2 dsadm1 dstage 256 Jul 6 2017 migration
    drwxrwxrwx 4 dsadm1 dstage 256 Aug 31 23:10 mmr
    hdadisa01:/Landing #


    hdadisa01:/Landing/Integrations # ls -la
    total 1064
    drwxrwxr-x 15 dsadm1 dstage 4096 Jun 15 06:23 .
    drwxrwxr-x 24 dsadm1 dstage 4096 Aug 31 22:55 ..
    -rwxrwxr-x 1 dsadm1 dstage 742 Jun 15 06:12 Book.xml
    drwxrwxr-x 2 dsadm1 dstage 4096 Aug 31 23:21 Dan
    -rwxrwxr-x 1 dsadm1 dstage 504260 Jun 15 06:13 DanTEMP.csv
    drwxrwxr-x 13 dsadm1 dstage 4096 Nov 10 2021 HD1PR
    drwxrwxr-x 3 dsadm1 dstage 256 Jun 8 09:50 Hybris
    drwxrwxr-x 4 dsadm1 dstage 256 Dec 7 2020 MDM
    drwxrwxr-x 20 dsadm1 dstage 4096 Jun 15 06:15 MFT
    -rwxrwxr-x 1 dsadm1 dstage 6180 Jun 15 06:23 New Microsoft Excel Worksheet.xlsx
    drwxrwxr-x 2 dsadm1 dstage 256 Jan 23 2020 New folder
    drwxrwxr-x 6 dsadm1 dstage 4096 Jul 20 2017 PAC1
    drwxrwxr-x 2 dsadm1 dstage 256 Oct 20 2016 PAC2
    drwxrwxr-x 3 dsadm1 dstage 256 Sep 22 2015 Replication
    drwxrwxr-x 3 dsadm1 dstage 256 Jun 15 06:23 Ruksana
    drwxrwxr-x 3 dsadm1 dstage 256 Jul 6 06:17 Test
    drwxrwxr-x 4 dsadm1 dstage 256 Jun 15 06:50 disk1
    drwxrwxr-x 2 dsadm1 dstage 256 Sep 4 2014 lost+found

    Could you please let me know how to resolve this issue. Do I need to add more option in the share section or global section of smb.conf file to fix this permission issue.

    Thanks,
    HD Team

    ------------------------------
    Harley AIX
    ------------------------------


  • 2.  RE: samba share file permission in smb.conf with AD integration

    Posted Wed September 07, 2022 03:46 AM
    Please share the smb.conf file output here. 


    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: samba share file permission in smb.conf with AD integration

    Posted Mon September 12, 2022 11:08 AM
      |   view attached
    Code attached.

    ------------------------------
    Harley AIX
    ------------------------------

    Attachment(s)

    txt
    Code.txt   1 KB 1 version


  • 4.  RE: samba share file permission in smb.conf with AD integration

    Posted Thu September 15, 2022 10:03 AM
    Some users have already replied to this problem in a different thread.
    https://community.ibm.com/community/user/power/discussion/samba-share-permission-error-access-denied?ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9
    I hope that will fix this issue.

    ------------------------------
    Ayappan P
    ------------------------------