Symlinks and ownership

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there a reason why you can't programatically set ownership of a
symbolic ink?  The following code

if( symlink( TARGET, LINK ))
{
  echo 'Successfully created ' . LINK . "\n";

  if( @chown( LINK, NEW_UID ))
  {
    echo 'Successfully changed ownership for ' . LINK . "\n";

    if( @chgrp( LINK, NEW_UID ))
    {
      echo 'Successfully changed group for ' . LINK . "\n";

    }
  }
}

echos out:

Successfully created XXX
Successfully changed ownership for XXX
Successfully changed group for XXX

yet when I go take a look at it in the directory, the group for the
link has not been changed to what I set it to.  Is that not something
you can do for symbolic links programatically?

thnx,
Christoph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux