When a user of the system owns a link he enjoys seeing he's username next to it when ls-ing, else he complains (a lot !!!) then 'His' boss complains and 'he' needs to explain that Perl can't do it, then the boss gets mad cause' he not know what "Perl" even means, then 'he' goes home . .
Ein avada, ein safa, kashe kashe :)
From: Kenton Brede <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: chown-ing symlink Date: Mon, 15 Mar 2004 15:14:04 -0600
On Mon, Mar 15, 2004 at 12:57:08PM -0800, John W. Krahn ([EMAIL PROTECTED]) wrote:
> Wiggins D'Anconia wrote:
> >
> > What is the OP really doing? Why the need to change the ownership of a
> > link, and why wasn't it created with the "correct" ownership to begin with?
>
> The ownership on a symlink should be irrelevant because the permissions
> are set to rwxrwxrwx by default. Just to speculate, the OP may be doing
> something based on the ownership of the file and using lstat() instead
> of stat() which returns the owner of the symlink instead.
He referenced the "-h" option for "chown" which would allow this. From the chown manpage on my Debian system -
-h, --no-dereference affect symbolic links instead of any referenced
file (available only on systems that can change the ownership of a symlink)
Why exactly he would want to do this I'm not sure either. It would be nice if he would enlighten us, hint... hint OP. I'm curious :) Kent
-- "Efficiency is intelligent laziness." -David Dunham
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>