Does anybody know how can I change the owner of the file/folder from "nobody" to "www"??
I'd really appreciate your help. Thanx!!
bav,
To use chown you use it like so:
chown owner:group filename
You can get a more detailed description for using chown by typeing this from your SSH prompt:
chown --help
Hope this helps.
Regards, Ray
It is quite simple use this code
chown("filename","www");
there can be problem if you have not permission to change files owned by nobody...
in that case you have to ask server admin to change file's owner
Can I easily change from PHP script? If yes, then is there any example available or any site where I can find more info. I've been searching for it but so far no luck 🙁
it IS php code
<?php chown("/usr/blalbalala/filename","www"); ?>
sorry, i didnt see your post before I posted my previous msg!