Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!aplcen!kenf1 From: kenf1@aplcen.apl.jhu.edu (Ken Firestone) Newsgroups: comp.os.minix Subject: Re: 'passwd' problems Keywords: passwd suid root Message-ID: <653@aplcen.apl.jhu.edu> Date: 3 Feb 89 22:23:52 GMT References: <1062@unm-la.UUCP> <6833@fluke.COM> Reply-To: kenf1@aplcen.apl.jhu.edu (Ken Firestone) Organization: Johns Hopkins University Lines: 31 In article <6833@fluke.COM> dcd@tc.fluke.COM (David Dyck) writes: >In article <1062@unm-la.UUCP> mcormick@unm-la.UUCP (Patrick McCormick) writes >about the passwd program not working correctly except from distrubution floppy: > >Try > >$ su ># cd /usr/bin # or whereever the passwd program is located ># chown root passwd ># chmod passwd 4775 > >This makes it suid root. This might not work. I had the problem with passwd, and a similar problem with su, su would not allow me to become root, even when I gave it the correct password and all. I am guessing that the problem started when I logged in as ast, and copied files from floppy to hard disk. In the process ast wound up owning everything, and I had the above problem. I solved it by logging in as root, and then doing the above. I do have two questions: 1. What other files HAVE to be owned by root and have the suid set? 2. How do you tell if suid is set? Thanks Ken Firestone (kenf1@aplcen.apl.jhu.edu)