Article View: net.bugs.v7
Article #118Bug in move
From: utzoodecvaxucbvaxucbcadtektronix...
Date: Mon, 04 Apr 1983 23:29
Date: Mon, 04 Apr 1983 23:29
15 lines
1092 bytes
1092 bytes
Boy, am I ticked off. I can't use "mv" from a suid'ed shell script. You see, "mv" needs to be suid root in case someone wants to move a directory (because joe-user isn't allowed to fool with directory links). So, whenever "mv" decides not to move directories, it does a: setuid(getuid()) and (sometimes) execls "cp" to just copy the file. Well, cp is running with the real uid now since the old effective uid was lost when "mv" started up as a suid program. Seems to me that "mv" should start out regular and call "mvdir" when it figures out that it is moving a directory. After all, it's already calling "cp" sometimes, so it's not such a big deal. Of course, "mvdir" doesn't exist yet.... Oh well. I'm gonna change that "mv" to a "cp" and an "rm" and keep on codin'
Technical Details
Message-ID:
<bnews.ogcvax.274>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!ucbvax!ucbcad:tektronix!teklabs!ogcvax!rascal Newsgroups: net.bugs.v7 Title: Bug in move Article-I.D.: ogcvax.274 Posted: Mon Apr 4 23:29:52 1983 Received: Wed Apr 6 02:16:44 1983 Subject: Bug in move Date: Mon, 04 Apr 1983 23:29:52 +0000 Message-ID: <bnews.ogcvax.274>