Gossamer Forum
Home : Products : Others : Fileman :

Using Fileman behind a Firewall/Proxy

Quote Reply
Using Fileman behind a Firewall/Proxy
When I installed my script at home, all the functions worked superbly. I was excited for two reasons:
1. finally I could password protect my directories;
2. finally I could "FTP" to my website from work.
Well, the first worked like a charm. Then when I got to work, I could not connect. I am suspecting that the reson is that our PCs at work are all behind a proxy server. I can however, set passwords to directories from work.
The error message I receive when attempting to edit or CHMOD various files is:


CGI ERROR
==========================================
Error Message : Unable to change permissions for 'links.cfg' to '777'. Reason: Operation not permitted
Script Location : /home/emmgee/.//public_html/fileman/fileman.cgi
Perl Version : 5.00404

Configuration
-------------------------------------------
allowed_space : 9999
icondir_url : /icons
logfile : /home/emmgee/public_html/fileman/fileman.log
max_upload : 9999
password_dir : /home/emmgee/public_html/fileman/pass
root_dir : /home/emmgee/public_html
root_url : http://genweb.net/~emmgee
script_url : http://genweb.net/~emmgee/fileman/fileman.cgi
show_date : 1
show_icon : 1
show_pass : 1
show_perm : 1
show_size : 1
use_flock : 1
version : 1.0

Form Variables
-------------------------------------------
action : permissions
name : links.cfg
newperm : 777
wd : cgi-bin2/admin

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /home/httpd/genweb.net
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_LANGUAGE: en
HTTP_HOST : genweb.net
HTTP_PROXY_CONNECTION: Keep-Alive
HTTP_REFERER : http://genweb.net/~emmgee/fileman/fileman.cgi
HTTP_USER_AGENT : Mozilla/4.04 [en] (WinNT; U ;Nav) via proxy gateway CERN-HTTPD/3.0 libwww/2.17
PATH : /sbin:/usr/sbin:/bin:/usr/bin
QUERY_STRING : action=permissions&name=links.cfg&newperm=777&wd=cgi-bin2/admin
REMOTE_ADDR : 159.37.7.57
REMOTE_HOST : trill.wellsfargo.com
REMOTE_PORT : 3796
REQUEST_METHOD : GET
REQUEST_URI : /%7Eemmgee/fileman/fileman.cgi?action=permissions&name=links.cfg&newperm=777&wd=cgi-bin2/admin
SCRIPT_FILENAME : /home/emmgee/.//public_html/fileman/fileman.cgi
SCRIPT_NAME : /~emmgee/fileman/fileman.cgi
SERVER_ADMIN : webmaster@genweb.net
SERVER_NAME : genweb.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.3 (Unix)

And when I attempt to edit a file:


CGI ERROR
==========================================
Error Message : Can't open: '/home/emmgee/public_html/cgi-bin2/admin/links.cfg'.
Reason: Permission denied
Script Location : /home/emmgee/.//public_html/fileman/fileman.cgi
Perl Version : 5.00404

Any suggestions? Any help is greatly appreciated!!! Thanks!



------------------
Thanks!

Michael
Quote Reply
Re: Using Fileman behind a Firewall/Proxy In reply to
The links.cfg file shouldn't need to be chmod 777 in order to edit it. I think 664 (or 666) would be what to use.

A lot depends on who is the owner of the file. For example, if you uploaded links.cfg initially via ftp, your userid is the owner. The fileman script runs with userid of "nobody" which, of course, is not your userid. Since you own the file, user nobody cannot change the file because it does not have the permissions to do so. Try changing the permissions of links.cfg to 664 and see if that will work and allow you to edit the file. If it doesn't, try 666.

If it doesn't allow you to chmod the file at all, then there is an ownership/permissions problem with the directory links.cfg is in that would have to be resolved. The permissions of the directory would probably need to be changed to 777 in order to allow chmod'ing of the files inside the directory.

I hope this helps.
Quote Reply
Re: Using Fileman behind a Firewall/Proxy In reply to
Bobsie,
Thanx for your detailed reply. Here is what I did:
1. Before changing anything, I tried the same thing from home, to see if it actually was the companies proxy server or not. I got the same results (concluding it is not the proxy).
2. The directory links.cgf is in (admin) is already CHMOD 777, and links.cfg is CHMOD 666.
3. I cannot CHMOD anything, whatsoever, so except for setting directory passwords, FileMan cannot do anyhting as it is now.

Do you have any further suggestions? I really appreciate your help Smile.

------------------
Thanks!

Michael

GenLinx Manager
http://genweb.net/~emmgee/pages/