Re: How to change the Owner of a file
- From: mlists@xxxxxxxxxxxxxxx (JupiterHost.Net)
- Date: Mon, 31 Oct 2005 07:19:48 -0600
gustav@xxxxxxxxxxxxxx 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)
.
- References:
- How to change the Owner of a file
- From: Rakesh Mishra
- Re: How to change the Owner of a file
- From: gustav
- How to change the Owner of a file
- Prev by Date: Re: Transforming HoA into AoH
- Next by Date: Re: Newbie Help (WinXP)
- Previous by thread: Re: How to change the Owner of a file
- Next by thread: Re: How to change the Owner of a file
- Index(es):
Relevant Pages
|