[NTLUG:Discuss] Is there a way to change permissions of a link

Chris Cox cjcox at acm.org
Tue Oct 31 17:14:02 CST 2000


Your question about overwriting files works like this, if
the user overwrite the link, he actually overwrites what
the link points to.  Consider:

notalinkfile
linkfile -> notalinkfile

cp myfile notalinkfile

This overwrites notalinkfile (provided that the person
has write permission to the file of course).

cp myfile linkfile

This overwrites notalinkfile since that's what linkfile
was pointing to.

I'm speaking in terms that the links you're talking about
are symbolic links.

If this isn't what you meant... try rephrasing the
original request.

Thanks,
Chris

Neil Aggarwal wrote:
> 
> Hello:
> 
> I have several symbolic links set-up for a user of mine.
> They point to some files in the same directory.
> 
> I want him to be able to copy new files into the targets
> of the links, but I dont want him to over-write the links
> themselves.
> 
> Unfortunately, the links are mode 777.
> 
> How do I change the mode of the links without affecting the
> targets?
> 
> Thanks,
>         Neil.
> 
> --
> Neil Aggarwal, President & CEO
> JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
> Custom Programming in Java, C++, HTML, perl
> 
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list