WebMO - Computational chemistry on the WWW
Recent news

WebMO 9.0 is now available for free download!

WebMO 9.0 Pro and Enterprise have a variety of additional features and is available for purchase.

WebMO can now be installed on Windows, Mac, and Unix servers!

August 24, 2019

Permission denied when logging in Log Out | Topics | Search
Moderators | Edit Profile

WebMO Support Forum » WebMO Installation » Other » Permission denied when logging in « Previous Next »

Author Message
Anatole Sarko
Posted on Tuesday, May 14, 2002 - 2:03 pm:   

I am attempting to install WebMO on SuSE Linux 7.2. Installation proceeded to go OK, but when I try to run login.cgi I get the error:
"Cannot open user file: Permission denied in line 106 of password.cgi". The browser runs other, non-WebMO cgi scripts OK. The httpd.conf file is set up pretty much as a SuSE default and I have enabled user directories as well. But when I try to run login.cgi from a user directory, I get the error: "You don't have permission to access /~ on this server. Would appreciate any help.
schmidt
Posted on Tuesday, May 14, 2002 - 4:06 pm:   

The problem probably has to do with the permissions of the WebMO files. Normally, these are set correctly during the installation process.

In order to diagnose your problem, I need the following information.

1) The URL of your WebMO installation.

2) A copy of your globals.int file, located in your webmo/cgi-bin/interfaces subdirectory.

3) A directory listings, obtained using the 'ls -alF' command (must use those options!) of
the webmo/user directory (specified during installation). Alternatively, the location of this directory can be found in the globals.int file under the "userBase" entry.

This information will allow us to quickly diagnose the problem.
Anatole Sarko
Posted on Tuesday, May 14, 2002 - 5:46 pm:   

Thank you for your reply! The information you need follows.
1) The full URL's are:
//baker024.esf.edu/usr/local/httpd/cgi-bin/webmo, //baker024.esf.edu/usr/local/httpd/htdocs/webmo. However, this server cannot be reached from outside as it currently resides on our intranet, behind a firewall.
2) Globals.int:
backgroundGraphic="background_dna.gif"
catPath="/bin/cat"
cgiBase="/usr/local/httpd/cgi-bin"
cpPath="/bin/cp"
host="baker024.esf.edu"
htmlBase="/usr/local/httpd/htdocs/webmo"
killPath="/bin/kill"
license="0205-0701-4687"
mkdirPath="/bin/mkdir"
mvPath="/bin/mv"
owner="Computational Chemistry on the WWW"
perlPath="/usr/bin/perl"
psOptions="-ef"
psPath="/bin/ps"
psRegExp="(\$pid, \$ppid, \$cpu_time) = /.{6}(.{8})(.{6}).{3}.{6}.{6}(.{12}).*/"
rcpPath="/usr/bin/rcp"
rmPath="/bin/rm"
rshPath="/usr/bin/rsh"
scpOptions="-o Protocol=1"
scpPath=""
sendmailOptions="-t"
sendmailPath="/usr/sbin/sendmail"
servers="baker024.esf.edu,0"
sshOptions="-o Protocol=1"
sshPath="/etc/ssh"
systemScratch="/tmp"
tableBackgroundColor="#99cccc"
tarOptions="cf"
tarPath="/bin/tar"
unamePath="/bin/uname"
url_cgiBase="/~cgi-bin/webmo"
url_htmlBase="/~webmo"
userBase="/home/asarko/webmo1"
version="3.2.002"
webserver="baker024.esf.edu"
whereisPath="/usr/bin/whereis"
3) ls -alF of /home/asarko/webmo1:
drwxrwxrwx 3 root root 4096 May 13 16:18 ./
drwx------ 40 asarko users 4096 May 14 14:22 ../
drwxrwxrwx 2 root root 4096 May 13 16:18 admin/
-rwxrwxrwx 1 root root 0 May 13 16:53 errors*
-rwxrwxrwx 1 root root 0 May 13 16:53 jobs*
-rwxrwxrwx 1 root root 0 May 13 16:53 queue*
-rwxrwxrwx 1 root root 7 May 13 16:53 users*

I hope I have provided correctly what you need.
Thanks,
Anatole Sarko
schmidt
Posted on Tuesday, May 14, 2002 - 6:31 pm:   

Thanks to your detailed response, I've located the problem!

In order to function, WebMO needs to access the files in the webmo/user directory. The web server usually runs as the user 'nobody', and is able to access the files since in this directory since they are world readable (even though they happend to by owned by root).

The problem is that the parent directory is not world readable (your home directory, set to 700). Since the webserver (user 'nobody') cannot legally access the parent directory, the Unix will not let 'nobody' access the user directory).

There are two possible solutions:

1) You can make your home directory (/home/asarko) world readable. However, this will let anyone on the system snoop your files!

2) You could reinstall WebMO and this time palce your user directory somewhere else that is world readable(perhaps /usr/local/webmo).

Good luck.
Raji Viswanathan
Unregistered guest
Posted on Wednesday, February 04, 2009 - 12:34 pm:   

I am getting a similar error message. I am enclosing all the reuired information.

URL:vwbug.mc.yu.edu/~raji/cgi-bin/webmo/login.cgi

ls -alF of /home/raji/webmo
[raji@vwbug ~/webmo]$ ls -alF
total 76
drwxrwxrwx 3 raji users 4096 Feb 3 12:44 ./
drwxr-xr-x 44 raji raji 4096 Feb 4 12:27 ../
drwxrwxrwx 2 raji users 4096 Feb 3 12:44 admin/
-rwxrwxrwx 1 raji users 0 Feb 3 12:44 errors*
-rwxrwxrwx 1 raji users 2081 Feb 3 12:44 groups.db*
-rwxrwxrwx 1 raji users 36 Feb 3 12:44 .groups.index*
-rwxrwxrwx 1 raji users 0 Feb 3 12:44 jobs.db*
-rwxrwxrwx 1 raji users 0 Feb 3 12:44 .jobs.index*
-rwxrwxrwx 1 raji users 0 Feb 3 12:44 log*
-rwxrwxrwx 1 raji users 0 Feb 3 12:44 queue*
-rwxrwxrwx 1 raji users 2141 Feb 3 12:44 users.db*
-rwxrwxrwx 1 raji users 36 Feb 3 12:44 .users.index*
globals.int
catPath="/bin/cat"
cgiBase="/home/raji/public_html/cgi-bin/webmo"
chmodPath="/bin/chmod"
chownPath="/bin/chown"
cpOptions="-r"
cpPath="/bin/cp"
externalAuthentication=""
externalBatchQueue=""
host=""
htmlBase="/home/raji/public_html/webmo"
killPath="/bin/kill"
license="0809-0904-3857"
loginMsg=""
loginMsgTimestamp=""
mkdirPath="/bin/mkdir"
mvPath="/bin/mv"
ncores="1"
owner="Computational Chemistry on the WWW"
perlPath="/usr/bin/perl"
psOptions="-ef"
psPath="/bin/ps"
psRegExp="(\$pid, \$ppid, \$cpu_time) = /.{4}(.{10})(.{6}).{3}.{6}.{6}(.{12}).*/"
rcpPath="/usr/bin/rcp"
rmOptions="-rf"
rmPath="/bin/rm"
rshPath="/usr/bin/rsh"
scpOptions=""
scpPath="/usr/bin/scp"
sendmailOptions="-t"
sendmailPath="/usr/sbin/sendmail.sendmail"
servers=",0"
sshOptions=""
sshPath="/usr/bin/ssh"
sudoEnabled=""
sudoPath="/usr/bin/sudo"
systemScratch="/tmp"
tarOptions="cf"
tarPath="/bin/tar"
unamePath="/bin/uname"
uniqueId="29247"
unzipPath="/usr/bin/unzip"
url_cgiBase="/~raji/cgi-bin/webmo"
url_htmlBase="/~raji/webmo"
userBase="/home/raji/webmo"
userStorageEnabled=""
version="9.0.010"
webserver="autodetect"
webserverProtocol="autodetect"
whereisPath="/usr/bin/whereis"
zipOptions="-r -q"
zipPath="/usr/bin/zip"

Add Your Message Here
Post:
Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration