I have a Unix Aix Server which I log in.
When i try to create a file using touch filename.txt I get an error saying :
touch: 0652-046 Cannot create filename.txt
I have executed id and ls -lad . commands and posted the results:
Response of id : uid=290975(gaara) gid=10(audit)
Response of ls -lad . : drwxr-xr-x 2 sigadmin student 256 Jan 11 05:57 .
First, check file permissions.
You’ll get a response like this:
Those permissions indicate
rwx(user)rwx(group) andr-x(others). I.e onlyuserandgroupcan create files in this directory (w=write permission).Compare these to you own UID/GIDs.
In your case the directory is owned by
sigadmin. Groupstudentandothershave no permission to create in this directory (r-x). So it’s not supposed to work, sincesigadminis the only one having permissions to write in this directory.