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