Re: How to change the Owner of a file

2005-11-01 Thread Randal L. Schwartz
Jay == Jay Savage [EMAIL PROTECTED] writes: Jay The new version prevents anyone but the superuser from changing a Jay file's ownership. Actually the change was to the chown and lchown Jay system calls in various kernels (I think Linux was the first, maybe Jay Solaris?) not to chown itself. You

Re: How to change the Owner of a file

2005-11-01 Thread Jay Savage
On 01 Nov 2005 09:01:02 -0800, Randal L. Schwartz merlyn@stonehenge.com wrote: Jay == Jay Savage [EMAIL PROTECTED] writes: Jay The new version prevents anyone but the superuser from changing a Jay file's ownership. Actually the change was to the chown and lchown Jay system calls in various

How to change the Owner of a file

2005-10-31 Thread Rakesh Mishra
Hi folks 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 :$!; } this code will give me the error you can't change permission denied can any body tell me , how to over come this error

Re: How to change the Owner of a file

2005-10-31 Thread Dan Klose
On Mon, 2005-10-31 at 13:45 +0530, Rakesh Mishra 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 :$!; } this code will give me the error you can't

Re: How to change the Owner of a file

2005-10-31 Thread gustav
Hi folks 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 :$!; } this code will give me the error you can't change permission denied can any body tell me , how to over come this

Re: How to change the Owner of a file

2005-10-31 Thread JupiterHost.Net
[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

Re: How to change the Owner of a file

2005-10-31 Thread Shawn Corey
Rakesh Mishra wrote: Hi folks 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 :$!; } this code will give me the error you can't change permission denied can any body tell me , how to

Re: How to change the Owner of a file

2005-10-31 Thread Chris Devers
On Mon, 31 Oct 2005, Shawn Corey wrote: Yes, you must the the recipient of the change, unless you have superuser privileges. In other words, you must be $uid. This is because many UNIX systems have quotas on how much data you can store. What?? That's hardly why this constraint exists. If

Re: How to change the Owner of a file

2005-10-31 Thread Shawn Corey
Chris Devers wrote: What?? That's hardly why this constraint exists. If anyone can make changes to any other account's files, then there's no point in having ownership constraints at all. Of course. I was being facetious. The new version of chown prevents what? New is a relative term.

Re: How to change the Owner of a file

2005-10-31 Thread Jay Savage
We're getting a little off topic here, but this is an interesting discussion, and I think tangentially related: part of good programming is understanding your security model, so... On 10/31/05, Chris Devers [EMAIL PROTECTED] wrote: On Mon, 31 Oct 2005, Shawn Corey wrote: Yes, you must the the