Solved

Internal Server Error

Posted on 2004-08-22
5
384 Views
Last Modified: 2008-02-01
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


0
Comment
Question by:Luxana
5 Comments
 
LVL 2

Expert Comment

by:ajschroh
ID: 11883773
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
 
LVL 1

Expert Comment

by:magicMush
ID: 11885588
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
 
LVL 10

Author Comment

by:Luxana
ID: 11995272
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
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 12034268
Closed, 30 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now