bin@primate.wisc.edu (Brain in Neutral) (10/07/89)
mkdir uses the real uid/gid. chmod and touch use the effective uid/gid. I did the following with what seem to me to be strange results. (M/120, RISC/os 4.01) (real uid/gid are rcolony/rem401, effective uid/eig are colony/401) tmpdir=/tmp/td$$ mkdir $tmpdir ($tmpdir is created with owner/group rcolony/rem401) chown 777 $tmpdir (this fails - "no permission match") files="$tmpdir/x $tmpdir/y" touch $files (they're created - with owner/group colony/401!) chmod 777 $files (this succeeds!) Is this supposed to happen? Or do I just not understand real/effective? Paul DuBois dubois@primate.wisc.edu
bin@primate.wisc.edu (Brain in Neutral) (10/07/89)
From article <847@uakari.primate.wisc.edu>, by bin@primate.wisc.edu (Brain in Neutral): > mkdir uses the real uid/gid. chmod and touch use the effective uid/gid. > I did the following with what seem to me to be strange results. I guess it's not clear from the previous posting that my question is: isn't it somewhat inconsistent for these programs not to be using the same uid/gid in each case? Particularly mkdir/touch, which both create files, not just check permission? Paul DuBois dubois@primate.wisc.edu