AIX aclek es perl stat()

Fórumok

Tudja valaki, kiderul-e a perl stat() kimenetebol, hogy van-e ACL a vizsgalt fajlokon?

Elsosorban AIX, de egyeb esetekben is erdekelne.

Koszi.

Hozzászólások

ahem. S ez mennyiben valasz a kerdesemre?
S ki lehetett volna-e hagyni az okostojas letmegooglethatforyou fazist?

Merthogy meggoogleztam. S azert jottem ide, mert nem derult ki definitive szamomra, hogy a stat() kimenetebol NEM latszik, van-e ACL a fajlon. Azota kiderult persze.

Jezusom, evek ota nem kerdeztem itt semmit, ugy latom nem fogok raszokni.
Megyek beveszem a gyogyszerem...

"The interpretation of the file permission operators -r , -R , -w , -W , -x , and -X is by default based solely on the mode of the file and the uids and gids of the user. There may be other reasons you can't actually read, write, or execute the file: for example network filesystem access controls, ACLs (access control lists), read-only filesystems, and unrecognized executable formats.
...
If you are using ACLs, there is a pragma called filetest that may produce more accurate results than the bare stat() mode bits. When under the use filetest 'access' the above-mentioned filetests will test whether the permission can (not) be granted using the access() family of system calls."

Persze ez sem definitív, csak elég nagy valószínűséggel ki lehet találni belőle, hogy mi a válasz.

"The interpretation of the file permission operators -r , -R , -w , -W , -x , and -X is by default based solely on the mode of the file and the uids and gids of the user. There may be other reasons you can't actually read, write, or execute the file: for example network filesystem access controls, ACLs (access control lists), read-only filesystems, and unrecognized executable formats.
...
If you are using ACLs, there is a pragma called filetest that may produce more accurate results than the bare stat() mode bits. When under the use filetest 'access' the above-mentioned filetests will test whether the permission can (not) be granted using the access() family of system calls."

Persze ez sem definitív, csak elég nagy valószínűséggel ki lehet találni belőle, hogy mi a válasz.