Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Changing DIRs to Files... Message-ID: <1990Sep19.015106.22922@virtech.uucp> Date: 19 Sep 90 01:51:06 GMT References: <2284@gmuvax2.gmu.edu> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 20 In article <2284@gmuvax2.gmu.edu> jnorman@gmuvax2.gmu.edu (Sci-Fi) writes: >How can one change the file type attibute ??? for instance... > >drwxr--r-- to >~rwxr--r-- > How about cp (like in cp dir file) followed by rm -rf dir; mv file dir Or if you are really trying to change that bit, you can use fsdb (not for the light-hearted), or write a quick and dirty program to read the raw filesystem to make the change. To do either of these things you normally need root access (since mucking around in the file system can damage it and cause a system panic). -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170