Fixdisk strangeness

Ted Garrett ttg at gryphon.COM
Sat Feb 3 15:04:05 AEST 1990


I noticed today that a function in my .kshrc is no longer functional.  The
basis of it is :

if [ -w /etc/cron ]
then
   ROOT=" root "
else
   ROOT=""
fi

What this is supposed to do is set the variable ROOT to " root " if you are
in Super User mode (basis is that if you are root, you can write to cron).

In the new ksh (from the fixdisk), this no longer works as previously expected
because cron's permissions and ownership are 

Permissions : 700
Owner : bin
Group : bin

So while this is a correction of a 'bug' in the ksh permissions checking, it's
inconvenient in that I had to search out a file on my system which is actually
owned by root and is read/write only by root.  I used /etc/group.

No biggie, but it may change the way some things get done on your system.



More information about the Unix-pc.general mailing list