From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ef07fdae495b5c3f X-Google-Attributes: gidfee84,public From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer) Subject: Re: chmod on link? Date: 1998/12/09 Message-ID: #1/1 X-Deja-AN: 420469826 References: <366E3AEE.4D39123B@vsb.cz> <366E7B5A.D45A3979@ev.co.yu> Mail-Copies-To: never Organization: Sun Microsystems, Netherlands Newsgroups: comp.unix.osf.osf1 [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]] Nikola Milutinovic writes: >The question still stands. A soft link is a file. A file can be written >to and I think I've seen some system calls that can manipulate either "a >link to" and "a link itself". If you can't access the link itself, why >would DEC put such access rights on one of the most common system soft >links? A soft/sym link is not a file. It can be manipulated in only two ways: - unlink(2) - remove it - symlink(2) - create it obviously, for both operations the permissions on the file are irrelevant (the directory counts) You could interpret permissions on the link, but typically (no Unix implementation I know of) does so. The links are displayed differently: lrwxrwxrwx SunOS 4/Solaris 2&7 l--------- Irix (others?) Some may just use the user's umask() in creating them, (DU)? Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.