man chmod
[...]
chmod never changes the permissions of symbolic
links; the
chmod system call cannot change their permissions.
This
is not a problem since the permissions of symbolic
links
are never used. However, for each symbolic link
listed on
the command line, chmod changes the permissions
of the
pointed-to file. In contrast, chmod ignores
symbolic
links encountered during recursive directory
traversals.
[...]
man chgrp
[...]
-h, --no-dereference
affect symbolic links instead of any
referenced
file (available only on systems that can change
the
ownership of a symlink)
[...]
Hope it can help
Angelo
--- bascule <[EMAIL PROTECTED]> wrote:
> i am confused as to why a chgrp command on a
> symbolic link will change the
> group of the link and not the target but a chmod
> command on the link will
> change the mode of the target and leave the link
> alone, i'm sure this isn't
> what i should expect but this seems so basic that i
> can't believe i have a
> bug,
> the two symbolic links are:
> [EMAIL PROTECTED] bascule]$ ls /dev/mix*
> /dev/mixer@ /dev/mixer1@
>
> bascule
> --
> "Zaphod grinned two manic grins, sauntered over to
> the bar
> and bought most of it."
>
> -- Zaphod in paradise.
>
>
> > Want to buy your Pack or Services from
MandrakeSoft?
>
> Go to http://www.mandrakestore.com
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com