Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3P alpha 4/15/85; site ucbmiro.ARPA Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!ucbvax!ucbmiro!metcalf From: metcalf@ucbmiro.ARPA (Chris Metcalf) Newsgroups: net.micro.pc Subject: Re: MS-DOS cd command Message-ID: <25@ucbmiro.ARPA> Date: Mon, 10-Jun-85 00:43:22 EDT Article-I.D.: ucbmiro.25 Posted: Mon Jun 10 00:43:22 1985 Date-Received: Tue, 11-Jun-85 08:48:01 EDT References: <2160@mhuxd.UUCP> Reply-To: metcalf@ucbmiro.UUCP (Chris metcalf) Organization: U.C. Berkeley Lines: 8 To restrict a user from changing directories, blank CD and CHDIR in COMMAND.COM (as discussed), and create a CD.COM file using MASM that allows access only to certain subdirectories--not too hard in assembler; just use the DOS 2.00 hex 3D function call, with string tests. To make "CD" return to the home directory, the cleanest way is probably to put a "HOME=" entry in the environment and read it (the segment address of the environment is at hex 2C in the initial DS). Chris Metcalf ARPA metcalf@ucbmiro.BERKELEY UUCP ...!ucbvax!ucbmiro!metcalf