Cannot chmod nothing

JosHost

Verified User
Joined
Mar 9, 2006
Messages
37
Location
israel
Hello ,
i recently bought a license from DA, and i own my server,
this is the problem i am having now -
in ftp, no one can CHMOD ANY File, only i am , the root user can,
i am not sure, but i think the related problem in the log file is in here:

[Thu Mar 9 03:54:02 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 9 03:54:02 2006] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Mar 9 04:39:00 2006] [notice] caught SIGTERM, shutting down
[Thu Mar 9 04:39:02 2006] [warn] module perl_module is already loaded, skipping
[Thu Mar 9 04:39:02 2006] [notice] Apache/1.3.34 (Unix) mod_layout/3.2.1 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP/4.4.2 mod_perl/1.29 FrontPage/5.0.2.2510 configured -- resuming normal operations
[Thu Mar 9 04:39:02 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 9 04:39:02 2006] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Mar 9 05:56:00 2006] [notice] caught SIGTERM, shutting down
[Thu Mar 9 05:56:01 2006] [warn] module perl_module is already loaded, skipping



i think the problem is something with
caught SIGTERM, shutting down

i realy need fast answers if anyone can..

thank you
joseph.
 
Hello,

suexec has nothing to do with ftp... it's an apache script wrapper to run scripts as the owner of the script.

If I may guess.. did you perhaps upload some file through apache with a php script? Then logged into ftp and tried to chmod. That won't work because the file would be owned by user "apache", while the ftp account would be running as the user. The user does not have permission on apache owned files. The solution is to only upload with ftp or DA, as they save the files as owned by the user. Avoid using the php scripts to upload files if you need to alter them later on.

So, if the above is true, the you should be able to chmod the files using the php script (assuming it's coded)

John
 
Hi

Hello John
your guess is correct, what i did was uploading the files from the root access and then trying to chmod them from the user access on ftp.
i have a friend that also using DA and he gave me a command that evan if something like this happnes you just need to make this command for the user to be able to chmod it :

cd /home/<user>/public_html
chown <user>.<user> -R *

whitout the "<" or ">"
thank you very much,


have a nice da y ,
Joseph
 
Back
Top