How does 'mv' rename directories?

Conor P. Cahill cpcahil at virtech.UUCP
Thu Sep 14 13:38:54 AEST 1989


In article <544 at isi.UUCP>, mike at isi.UUCP (Mike Maloney) writes:
> But on Microport, Xenix, and Sun Unix 4.0, /bin/mv is -rwxr-xr-x and is
> owned by 'bin'.   How is 'mv' able to rename directories on a properly 
> working system?

On system V 3.2 mv determines that a directory is to be moved and calls
the program /usr/lib/mv_dir which is setuid to root.


-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.wizards mailing list