Solved

Internal Server Error

Posted on 2004-08-22
5
396 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 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