View Full Version : Permission denied. Owner = "nobody"
Tolodine
12-30-2000, 02:16 AM
I really need some help here. I have been with tech support on trouble tickets for 4 days now with nothing resolved. My situation is this: I upload a cgi script and run it. The cgi-script creates a file inside my account but the owner of this new file is set to "nobody" and because of this I can do absolutely NOTHING to the file that was created. I can't delete the file, chmod the file, modify the file in any way what so ever. I can't even delete the file through the script itself. I tried ftp and telnet and still "Permission denied". Has ANYONE ran into this and know what I have to do to get it fixed? I can do all that I want to the files that I upload myself but when a file is created or even edited by a cgi script (any cgi-script), it resets the owner of the file to "nobody" and then I can't do ANYTHING with that file.
If anyone from tech support reads this, PLEASE HELP!! If I don't get this resolved I will have to delete the account.
[Edited by Tolodine on 12-30-2000 at 01:19 AM]
ebsuc
12-30-2000, 02:44 PM
Just a thought
What is the owner and group of the cgi script set to?
I have a couple of cgi scripts which access files and had a few problems. In the end I created empty files manually, chmod'ed them and then the scripts worked perfectly.
Sorry I can't be of more help...
Hi,
I know this is an obvious question, but after creating your file within the same script have you tried changing the owner, via the "chown" command (available in both perl, and unix)
chris
sylow
01-03-2001, 09:23 AM
I think it happens with php scripts instead of perl scripts, did you upload by using php script? I suggest u to use php in cgi mode if you wanna upload a file.
Brendan
01-03-2001, 02:42 PM
Tolodine,
Whats your domain with us again? We do have a fix for this now which will make the scripts create files you can modify.
-Brendan
ravent
09-21-2001, 03:24 PM
Originally posted by support
Tolodine,
Whats your domain with us again? We do have a fix for this now which will make the scripts create files you can modify.
-Brendan
I have the same problem and was referred to this forum, what is the fix ?
ravent
09-21-2001, 03:38 PM
Originally posted by support
Tolodine,
Whats your domain with us again? We do have a fix for this now which will make the scripts create files you can modify.
-Brendan
I have tried using
sub chown_by_name {
local($user, $pattern) = @_;
chown((getpwnam($user))[2,3], glob($pattern));
}
&chown_by_name("ravent", "$profiles/$user");
but to no avail, the problem persits. What is your fix ?:confused:
my domain is www.stay-high.com
ChrisK
10-01-2001, 10:34 AM
Hi all,
To take over ownership of a file just copy it to another location on the server and copy it back. It will overwrite the old file and you will be able to modify or delete the file after that.
ravent
10-09-2001, 08:41 AM
This soloution may work out for you but for me it doesn't work. I just get a permission denied message
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.