soft link

m.roth2006 at rcn.com m.roth2006 at rcn.com
Thu Apr 9 19:37:53 UTC 2009


>Date: Thu, 9 Apr 2009 23:02:50 +0530
>From: Joy Methew <ml4joy at gmail.com>  
>Subject: Re: soft link  
>To: General Red Hat Linux discussion list <redhat-list at redhat.com>
>
>if the permission of file is read only u cant save it force fully.
>but sometimes ur login from root user it asks for "!" sign.
>
Yes, from vi or whatever, you *can* save it, if you ask for force. And if you're not root, then you might have to ^Z out, chmod +r, then fg and then you can write it.

Or you might have opened it in view, rather than vi, which is the read-only mode; that still lets you write, but you *always* have to use force in that case.

       mark
>
>
>On Thu, Apr 9, 2009 at 10:46 PM, Chet Nichols III <chet.nichols at gmail.com>wrote:
>
>> >> why this command gives full
>> >> permission to soft link any reason behind this?
>> RHEL ignores whatever permissions are in the inode of the symlink, and only
>> looks at the permissions set in the inode of the file the symlink points
>> to.
>> The symlink is a complete reference to the file it points to.
>>
>> You will see, in the case of a symlink, if you try and change the
>> permissions on it, you'll actually end up changing the permissions of the
>> file it points to.
>>
>> The fun thing is, in the event of trying to remove/modify the symlink, it
>> will STILL only look at the permissions of the referenced file, which is
>> why
>> even though a symlink has full permissions, only people with permissions to
>> remove/modify the referenced file are the ones that can remove/modify the
>> symlink.
>>
>> Chet
>>
>> On Thu, Apr 9, 2009 at 12:51 PM, Raj Har <raj4list at gmail.com> wrote:
>>
>> > hello all,
>> >                  when we create soft link of any file like "ln -s
>> > /etc/passwd password".
>> > the permission of soft link "password" in this example" is
>> > lrwxrwxrwx but other user cant access it. why this command gives full
>> > permission to soft link any reason behind this?
>> >
>> > when we create file from vi editor we save from "wq" command but
>> sometimes
>> > we save it force fully "wq!".
>> > why force fully in necessary?
>> >
>> > thanks
>> > --
>> > redhat-list mailing list
>> > unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
>> > https://www.redhat.com/mailman/listinfo/redhat-list
>> >
>>
>>
>>
>> --
>> ----------------------------------------
>> chet nichols III
>> chet.nichols at gmail.com
>> aim: chet / twitter: chet
>> http://chetnichols.org
>> ----------------------------------------
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>-- 
>redhat-list mailing list
>unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
>https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list