Hi,

We are experiencing problems when testing file permissions on different
systems, AIX 3.2.5 and AIX 4.1.4 for instance.

It seems that after all in AFS3.4a the group and other modebits are
checked when testing the file permissions, but this does not happens in
AFS 3.3a.

Here is an example:

+AIX 3.2.5 and AFS 3.3a:

[noname]:admin> uname -srv
AIX 2 3
[noname]:admin> what /usr/vice/etc/afsd |grep Base
         Base configuration afs3.3 1.59
[noname]:admin> ls -l
kshrc
-rwx------   1 10850200 staff       8921 Jul 26 08:46 kshrc
[noname]:admin> [[ -x kshrc ]] && echo ok
ok
[noname]:admin> id
uid=106(jleon) gid=1(staff)

As you can see in this platform the group and other modebits are not
checked. This is a behavior I would expect.

+ AIX 4.1.4 and AFS 3.4a:
[rudy]:admin> uname -srv
AIX 1 4
[rudy]:admin> ls -l kshrc
-rwx------   1 10850200 staff       8921 Jul 26 08:46 kshrc
[rudy]:admin> [[ -x kshrc ]] && echo ok
[rudy]:admin> id
uid=106(jleon) gid=1(staff)
[rudy]:admin> what /usr/vice/etc/afsd |grep Base
        Base configuration afs3.4 4.36

But here, because the issuer is not the owner the file testing fails,
however if I change the mode bit as follows, it'll work:

[rudy]:admin> chmod g+x kshrc
[rudy]:admin> ls -l kshrc
-rwx--x---   1 10850200 staff       8921 Jul 26 08:46 kshrc
[rudy]:admin> [[ -x kshrc ]] && echo ok
ok

This is what I don't understand... and it's becoming a big concern
because a lot of the scripts we have rely on file testing.

Have you seen or heard about this weird behavior ? Was there a change in
AFS that I am not aware of ?

Any information will be appreciated,

Thanks in advance,

  Juan.

--
Juan Leon-Rodriguez
UNIX Distributed Computing Support  Voice: +914-435-6630 Tie: 295-6630
ISSC Technology Solutions - North   Fax  : +914-433-5233 Tie: 293-5233
IBM Poughkeepsie, NY                EMail: [EMAIL PROTECTED]

Reply via email to