Re: soft link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Date: Thu, 9 Apr 2009 23:02:50 +0530
>From: Joy Methew <ml4joy@xxxxxxxxx>  
>Subject: Re: soft link  
>To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
>
>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@xxxxxxxxx>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@xxxxxxxxx> 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@xxxxxxxxxx?subject=unsubscribe
>> > https://www.redhat.com/mailman/listinfo/redhat-list
>> >
>>
>>
>>
>> --
>> ----------------------------------------
>> chet nichols III
>> chet.nichols@xxxxxxxxx
>> aim: chet / twitter: chet
>> http://chetnichols.org
>> ----------------------------------------
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>
>-- 
>redhat-list mailing list
>unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
>https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux