In a shell script, I am applying ACL as follows:
aclput -i acl_file.txt $targetloc/$srcfile
and acl_file.txt looks like this -
attributes:
base permissions
owner(prj1): rw-
group(grp1): r--
others: r--
extended permissions
enabled
permit r-x u:ftpid
Question is- how do I programmatically find out that ACL is applied correctly for all (owner, grop, others) and extended permissions also worked fine. $? seems to give me 0 all the time (even when owner (prj1) does not exist).
Please help.
aclput -i acl_file.txt $targetloc/$srcfile
and acl_file.txt looks like this -
attributes:
base permissions
owner(prj1): rw-
group(grp1): r--
others: r--
extended permissions
enabled
permit r-x u:ftpid
Question is- how do I programmatically find out that ACL is applied correctly for all (owner, grop, others) and extended permissions also worked fine. $? seems to give me 0 all the time (even when owner (prj1) does not exist).
Please help.