AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Cannot Write File

    Posted Tue September 05, 2006 05:44 PM

    Originally posted by: SystemAdmin


    This is a fairly basic question, so I'm hoping the answer is quick and easy. Perhaps there is something fundamental I'm missing, but despite correct permissions, I still cannot write a file to a folder I was granted access to.

    I need to be able to write to the folder "logs"

    bash-3.00$ ls -na /data/sandbox
    total 12
    drwxrwsr-x 5 10064 12985 512 Sep 05 15:23 .
    drwxrws--- 4 10064 12985 512 Aug 23 08:45 ..
    drwxrwsr-x 2 10064 12985 512 Sep 05 14:53 logs

    Any attempt fails though

    bash-3.00$ touch /data/sandbox/logs/test.txt
    touch: 0652-046 Cannot create /data/sandbox/logs/test.txt.

    I can, however write to the folder "logs" resides in.
    bash-3.00$ touch /data/sandbox/test.txt
    bash-3.00$ ls -na /data/sandbox
    total 12
    drwxrwsr-x 5 10064 12985 512 Sep 05 17:30 .
    drwxrws--- 4 10064 12985 512 Aug 23 08:45 ..
    drwxrwsr-x 2 10064 12985 512 Sep 05 14:53 logs
    -rw-r----- 1 34250 12985 0 Sep 05 17:30 test.txt
    The correct group is applied to the folder (12985)
    I am in the correct group (12985)

    bash-3.00$ id
    uid=34250(myid) gid=2000(group2000) groups=12985(LOGGER)

    bash-3.00$ ypcat group |grep LOGGER
    LOGGER:*:12985:myid,yourid
    The disk has plenty of space available.
    What gives?
    #AIX-Forum


  • 2.  Re: Cannot Write File

    Posted Wed September 06, 2006 07:22 AM

    Originally posted by: SystemAdmin


    Is the directory, not folder:-), "logs" by any chance NFS mounted? That's one thing that can cause problems like this. A directory can be mounted read-only and that overrides the permissions.

    HTH

    Jim Lane
    #AIX-Forum


  • 3.  Re: Cannot Write File

    Posted Wed September 06, 2006 09:03 AM

    Originally posted by: SystemAdmin


    Thanks for the reply.

    It appears to be mounted rw
    bash-3.00$ mount
    node mounted mounted over vfs date options

    ---------------

    ------------
    fs0123 /export/data /data nfs3 Sep 06 08:56 rw,hard,intr,retry=2


    #AIX-Forum


  • 4.  Re: Cannot Write File

    Posted Thu September 07, 2006 07:24 PM

    Originally posted by: SystemAdmin


    Is anyone aware of any tools or logs that might help diagnose this on AIX? Are there any tools that report on file access methods or advanced auditing showing exactly which security credential is being violated?
    #AIX-Forum


  • 5.  Re: Cannot Write File

    Posted Tue September 19, 2006 08:38 PM

    Originally posted by: SystemAdmin


    Apparently, the problem has to do with there being a mix of Solaris and AIX in the NFS environment. Changes on AIX to group level permissions on a file residing on a Solaris-based filesystem are not recognized by Solaris.
    Why is this?
    #AIX-Forum