Re: Incorrect password
"Jonathan Miller" <[email protected]>
| Newsgroups | gmane.mail.neomail.general |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ----- From: "Leon Mayne" <[email protected]> Sent: Thursday, February 06, 2003 1:30 AM > Thanks for the reply, > > OK, it works when I do it on the command line as you suggested, so do I take > it there is a problem with suid? > > Permissions for /etc/shadow are read only (owner): -r-------- Let's test that possibility: Create a new file called "whoami.pl" or something with the following: #!/usr/bin/perl # (or /usr/local/bin/perl or wherever it may live) $ENV{'PATH'}='/usr/bin/'; print `whoami`; Save the file, and as root do the following: chown root whoami.pl chmod u+sx,go=rx whoami.pl Log in as a different user (non-root) and run whoami.pl. It should return "root". If not, suidperl seems to be the issue... jonathan@lab:~> ./whoami.pl # (I made whoami.pl in my user home dir) root jonathan@lab:~> ----------- Also, can you cut n paste a ls -l of the neomail/cgi-bin directory (owners and permissions) as well as the /var/neomail (or wherever) directory? (As my system is configured..) ls -l /usr/local/neomail/cgi-bin ls -l /var/neomail ------------ Good luck! :-) -Jonathan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com