How to give users in cPanel chown for nobody files?

hekri

Well-Known Member
Oct 14, 2003
147
2
168
Hello

Maybe someone know how to give users in cPanel some script to chown nobody.nobody files to username.username ?

I know that i can do it from shell (cron) but i want give users script to do thise when they want.

Someone have any idea how to do thise?

I know that fantastico do chown but i cand find in fantastico code how from php script do the chown for user files.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hello

Maybe someone know how to give users in cPanel some script to chown nobody.nobody files to username.username ?

I know that i can do it from shell (cron) but i want give users script to do thise when they want.

Someone have any idea how to do thise?

I know that fantastico do chown but i cand find in fantastico code how from php script do the chown for user files.
May want to read: http://us2.php.net/chown

Essentially the script would need to run as root in order to allow the changing of ownership of the files. That sounds risky to say the least.

This is likely due to the fact chown (the Unix command) itself may only be executed as root according to the chown man page:

http://nersp.nerdc.ufl.edu/~dicke3/nerspcs/chown.html