Solved

Internal Server Error

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
networking details on centos 6.6 4 62
Setting up two Raspberry Pi gateways/routers 3 62
Oracle 10g standard edition server with 4 processors 3 52
AWS ELB 5 77
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
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.

770 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