Internal Server Error

debian 3.0

Does somebody have a experience with program changepassword which alows users change their samba

paswords through http from any client PC on network? CLient runs http://server/cgi-bin/changepassword.cgi

where he need to put user name old password and new pasword and verify password. When I put wrong onld password

(unix-password) this message appear:

Wrong password for user.

Please and try again.

 

When I put correct old (unix-password) this message apper:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@debian-business and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

 

Apache/1.3.26 Server at debian-business.debian-business Port 80

and this is the error what I got from /var/log/apache/error.log

[Sun Mar 7 02:21:51 2004] [error] [client 10.0.0.135] Premature end of script headers: /usr/lib/cgi-bin/changepassword.cgi

Funny think on it is that I use same changepassword script for my another server and it is working without any problems!! Also debian 3.0


LVL 10
LuxanaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CetusMODConnect With a Mentor Commented:
Closed, 30 points refunded.
CetusMOD
Community Support Moderator
0
 
ajschrohCommented:
hmmm I have seen errors like that before.  usually what it means is you have a blank space (white space) either in the beggining or the end of the CGI script.  Remove the white space at the top or bottom and try it again.
0
 
magicMushCommented:
Probably ???

When a wrong password is entered the same file  that requests the password displays an error message saying Wrong Password

However when a correct password is entered after the verification the page that requested the password will usually redirect you to another page meaning the error is not in the file that requests the password instead in redirection.

Usually this happens when you do not have enough permissions to execute a cgi file

Check the file and try to see where it redirects u in when a correct passwrod has been typed.  and change the file permission to "755"  --> chmod 755 filename or goto the cgi directory and change the entire contents to 755  by using chmod -R 755 /path/to/directory

this usually solves the problem.

inyour case I would change all the cgi scripts to "755" since the files are located in the cgi-bin and usually this is where all the cgi scripts are kept but nothing else.


0
 
LuxanaAuthor Commented:
Hello experts,

So I fixed this problem by my self it was actually my mistake because I did not put absolute path to smbpasswd file I just specified absolute path to folder where the smbpasswd file is.


Thanks for your effort to help
I'll ask CS Admin to close this question.

Luxana
0
All Courses

From novice to tech pro — start learning today.