Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!hp4nl!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.sys.hp Subject: chmod/chown/chgrp with symlinks Message-ID: <4204@mhres.mh.nl> Date: 2 Jan 90 11:31:52 GMT Organization: Multihouse NV, the Netherlands Lines: 30 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" -------------------------