in reply to How do I change the owner:group of a symlink?

Actually you can't in Perl.

As Tom Christiansen has said(I don't remember where):

"Perl doesn't do this. Do you know why many systems don't support the idea? Because it conveys no distict functionality. Modes and owners and times on symbolic links have no meaning. So why bother? And it's very non-portable."

Now as to making a system call. Did you use the "-h" option? I did and it did change the link's ownership without changing the file.

  • Comment on Re: How do I change the owner:group of a symlink?

Replies are listed 'Best First'.
Re: Re: How do I change the owner:group of a symlink?
by v_thunder (Scribe) on May 25, 2002 at 06:18 UTC

    Oh, bummer. I know it doesn't really matter, but I just need this group of to be owned by bin:bin. Just, uh, because :)

    And you are absolutely right about the -h option. I don't know how I missed it, it's the first option on HP-UX's chown(1) manpage!

    Thanks a bunch,
    -Dan