Solved

Internal Server Error

Posted on 2004-08-22
5
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

623 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