[comp.sys.hp] chmod/chown/chgrp with symlinks

jv@mhres.mh.nl (Johan Vromans) (01/02/90)

When applied to a symbolic link,
 - chmod changes permissions of the real file
 - chown changes ownership of the symlink
 - chgrp is apparently ignored

Is this a bug or a feature?

Sample session:

~ > uname -a
HP-UX mhres 6.2 B 9000/320 mhres
~ > touch the-file
~ > ln -s the-file the-link
~ > ll the-file the-link
-rw-r--r--   1 jv       bsp            0 Jan  2 12:19 the-file
lrwxr-xr-x   1 jv       bsp            8 Jan  2 12:19 the-link -> the-file
~ > chmod a+w the-link
~ > chgrp mail the-link
~ > chown news the-link
~ > ll the-file the-link
-rw-rw-rw-   1 jv       bsp            0 Jan  2 12:19 the-file
lrwxr-xr-x   1 news     bsp            8 Jan  2 12:19 the-link -> the-file


Johan
-- 
Johan Vromans				       jv@mh.nl via internet backbones
Multihouse Automatisering bv		       uucp: ..!{uunet,hp4nl}!mh.nl!jv
Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62944/62500
------------------------ "Arms are made for hugging" -------------------------