AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Tue March 15, 2022 07:06 AM
    Hi,
    I need support.
    for example:
    I got this error when I do an unzip on the SAMBA Share Z:\tmp\bkh\

    Cannot set attribute Error when execute file/program run on SAMBA Share. I have this same Error with some Scripts too.
    We run SAMBA 4.14.12-1 
    No Error in the SAMBA Log

    Hope you can support me.
    best regards, Wolfgang

    ------------------------------
    Wolfgang Tress
    AIX, Storage,SAN und Backup Admin
    Dürr IT Service GmbH
    Schopfloch
    +49 7443133121
    ------------------------------


  • 2.  RE: Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Tue March 15, 2022 09:43 AM
    This could be a permission issue or extraction issue. Are you trying to unzip inside the Samba share ? If so, does the user has write permission ?

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



  • 3.  RE: Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Wed March 16, 2022 03:27 AM
    Hello,
    thanks for support.
    I have set the log level = 4, and now I got this error.
    [2022/03/16 08:06:08.824400, 2] ../../source3/smbd/trans2.c:6686(smb_set_file_dosmode) smb_set_file_dosmode: file_set_dosmode of tmp/libxml2-2.7.8-1.aix6.1.ppc.rpm failed (The file access permissions do not allow the specified action.)
    We know now the Problem.
    When we unzip the File in the SAMBA Share and the user is different then the owner of the file in the zip file, then we get this error.
    the file will be unzipped and this user is then the owner of the files, but we got this error "Cannot set attribute". This was not happen with SMB1.5
    Does there exist a [global] setting ?
    regards , Wolfgang



    ------------------------------
    Wolfgang Tress
    AIX, Storage,SAN und Backup Admin
    Dürr IT Service GmbH
    Schopfloch
    +49 7443133121
    ------------------------------



  • 4.  RE: Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Wed March 16, 2022 09:14 AM
    You may want to check the smb conf man page. 
    https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

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



  • 5.  RE: Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Wed March 16, 2022 10:00 AM
    Look at all the default settings:
    testparm -v​
    and reference the manpage as Ayappan has mentioned.  You may want to start with investigating the vfs attributes if you have any set.

    ------------------------------
    Cory Beverlin
    ------------------------------



  • 6.  RE: Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Fri March 18, 2022 10:17 AM
    Hi,
    thanks for support.
    The solution was to change to alt 7z Version 7z1900
    best regards Wolfgang

    ------------------------------
    Wolfgang Tress
    AIX, Storage,SAN und Backup Admin
    Dürr IT Service GmbH
    Schopfloch
    +49 7443133121
    ------------------------------



  • 7.  RE: Cannot set attribute Error when execute file/program work on SAMBA Share

    Posted Fri August 05, 2022 01:37 AM
    Hi,
    we still had problem, with new Windows Client Update we got more problem, until we disabled ea support.
    In AIX jfs2 Filesystem exist a EAformat :v1
    which we use.
    lsfs -q /FileSystemName
    you can change that to v2 , if you need EA with
    chfs -a ea=v2 /FileSystemName
    but we use still v1
    In the SAMBA smb.conf
    ea support = no
    best regards Wolfgang

    ------------------------------
    Wolfgang Tress
    AIX, Storage,SAN und Backup Admin
    Dürr IT Service GmbH
    Schopfloch
    +49 7443133121
    ------------------------------