[EMAIL PROTECTED] wrote:
Hi folks

Hello,

Can any body tell me how to change the owner of a file ??????

I have written this script .......

unless (chown $uid , $gid , $filename)
{
die "chown failed :$!";
}

chown $uid, $gid, $filename or die "chown failed: $!";

this code will give me the error you can't change " permission denied "
can any body tell me , how to over come this error

You must be have permission to chown the file and apparently you don't so you need to either:

 a) run the script as a user that does have permission
b) ask whoever has permission of it to give you a copy or loosen its permissions for you.

The whole idea of permissions is to not let changes (IE chmod) be doen to a file by people who are nto allowed (IE you)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to