Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: utzoo!lsuc!dave From: dave@lsuc.UUCP (David Sherman) Newsgroups: net.unix-wizards Subject: Re: unix quirks (chmod 000 dir) Message-ID: <617@lsuc.UUCP> Date: Mon, 22-Apr-85 15:44:08 EST Article-I.D.: lsuc.617 Posted: Mon Apr 22 15:44:08 1985 Date-Received: Mon, 22-Apr-85 16:05:40 EST References: <9938@brl-tgr.ARPA> <413@leadsv.UUCP> Reply-To: dave@lsuc.UUCP (David Sherman) Organization: Law Society of Upper Canada, Toronto Lines: 27 In article <413@leadsv.UUCP> mfe@leadsv.UUCP (Mark Ellson) writes: ||In his article, ucscc!argv (Dan Heller) argues that the appropriate error ||message when you try to change directory into a directory for which you don't ||have permissions is "Permission denied" instead of "no such file or ||directory". In fact, while this may be clearer to the user, it falls in the ||same general category as not using "Incorrect password" or "Incorrect ||username" for failed logins. You never want to tell a potential intruder or ||unauthorized user any information which can be used to infer the existence ||or nonexistence of a protected object. || ||A possible exception to this rule might be if the software is smart ||enough to check the ownership of the directory, and then generate the ||appropriate error message based upon whether or not you are the owner of ||that directory. Not really. The test of who's allowed to know the directory exists is really "who has read permission on the parent directory". In most UNIX applications, a protected directory that someone is trying to cd to can be found to exist, even if its execute bit is off. The error message really should be "Permission denied". Dave Sherman The Law Society of Upper Canada Toronto -- {utzoo pesnta nrcaero utcs hcr}!lsuc!dave {allegra decvax ihnp4 linus}!utcsri!lsuc!dave