Path: utzoo!utgpu!watmath!clyde!att!rutgers!cmcl2!yale!spolsky-joel From: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Newsgroups: comp.sys.ibm.pc Subject: Re: Protecting directories from peeping eyes (how???) Keywords: PROTECT DIRECTORIES Message-ID: <44916@yale-celray.yale.UUCP> Date: 6 Dec 88 06:33:22 GMT References: <46@VAX1.CC.UAKRON.EDU> Sender: root@yale.UUCP Reply-To: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Distribution: na Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 34 In article <46@VAX1.CC.UAKRON.EDU> greggt@VAX1.CC.UAKRON.EDU (Gregg Thompson) writes: > > I am in need of protecting directories from being read by "normal" >means. I need it so that ncd and other dos directory utility programs >won't acknowledge the directory. Or something that will password the >directory so that nothing can get to it unless some sort of password is >given to unprotect it. Gregg, The only thing you can do with DOS is set the "hidden" bit. If this is set DIR won't list the directory, but it's still there. I think, though, that most DOS directory utilities will find it. In Turbo-C this is done as follows: _chmod("filename",FA_HIDDEN); and reversed by _chmod("filename",0); +----------------+----------------------------------------------------------+ | Joel Spolsky | bitnet: spolsky@yalecs.bitnet uucp: ...!yale!spolsky | | | internet: spolsky@cs.yale.edu voicenet: 203-436-1483 | +----------------+----------------------------------------------------------+ | #include| | | | | | | | | \ \ \ \_|_/ / / / \_\_\_|_/_/_/ | | happy hannuka! _|_