Changing DIRs to Files...
Conor P. Cahill
cpcahil at virtech.uucp
Wed Sep 19 11:51:06 AEST 1990
In article <2284 at gmuvax2.gmu.edu> jnorman at 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
More information about the Comp.unix.questions
mailing list