Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!sfmag!sfsup!mpl From: mpl@sfsup.UUCP Newsgroups: comp.os.minix Subject: Re: super_user in fs Message-ID: <1589@sfsup.UUCP> Date: Thu, 2-Jul-87 14:38:41 EDT Article-I.D.: sfsup.1589 Posted: Thu Jul 2 14:38:41 1987 Date-Received: Sat, 4-Jul-87 08:40:43 EDT References: <462@csm9a.UUCP> Organization: AT&T-IS, Summit N.J. USA Lines: 17 Summary: use the set-uid bit! In article <462@csm9a.UUCP>, japplega@csm9a.UUCP writes: > Contrary to my previous posting commenting out the super_user check in > open.c (fs) did not solve my problem... only root can link or unlink > directories.... I finally have resolved myself to logging in as root > > I also discovered that when the system is recompiled only root can > sucessfully issue a su? > The solution is as follows: "mkdir" should be set-user-id and owned by root. do a "chown root mkdir" and a "chmod 4711 mkdir" "mv" calls a program called "mv_dir" to actually move directories. "mv_dir" should also be mode 4711, owned by root. Finally, "su" should have the same mode and owner.