> >How can I prevent /usr/bin/chmod from following symbolic links? I
> can't find any
> >-P option in the documentation (and it doesn't work either..).
> > Maybe find can be used in some way?
> 
> 
> Not possible; in Solaris we don't have a lchmod(2) system call which
> makes
> adding a chmod option (like chown) which don't follow symbolic links.
> You
> can clearly add it to OpenSolaris :-)



It's a strange question anyway - You want a single file to have permissions
(suppose 755) in one directory, and some different permissions (suppost 700)
in some other directory?  Then some users could access the file if they use
path A, but would be denied access to the same file if they used path B?
That's weird.

It makes no sense to attempt setting perms on a symlink.  The perms are
determined by the actual file.  The symlink is just another name for the
file itself.  If you want to change perms of the file, change the perms of
the file.

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to