From: cs911046@juno.ariel.yorku.ca (Peter Reissner) Subject: Which was found! Date: Tue, 7 Jul 1992 04:36:45 GMT
Thank you to everyone who responded directly and via the newsgroup.
I originally posted "Where is which?", and what I am now doing under
bash seems to work fine. I simply created a script with the line
type $1 $2 $3
I don't think I need more, and this is quite simple. The file is
chmod a+x which
and it sits somewhere in PATH.
Thanks again to everyone. I guess I'll compile which.c to have a
'real' copy, although it will take up more than 1 block to store it.
I had this other problem, which I solved. I tried to mount my floppy
as a normal user, but I got a message about 'unable to open lock-file'
I figured I had to make 'mount' and 'umount' have root-type access to
files so I did a ... chmod +s mount ... and a ... chmod +s umount
which gives me
-rwsr-sr-x 1 root root 21508 Jun 7 18:40 /bin/mount
-rwsr-sr-x 1 root root 21508 Jun 7 18:40 /bin/umount
and now I can mount and umount as a normal user.
Did I do the correct thing to achieve my goal, or did I cheat?
Peter Reissner
Toronto, Ontario, Canada
email: cs911046@ariel.yorku.ca
============================================
Anything worth repeating is worth verifying.
============================================