I have personally never used the command. From what I'm reading, you can
list the attributes with lsattr. If the "i" is set, "A file with the 'i'
attribute cannot be modified: it cannot be deleted or renamed, no link can
be created to this file and no data can be written to the file. Only the
superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can
set or clear this attribute."

As root, you can change the attributes with the chattr command. Be sure to
use the -R to recursively change the child folders and files if needed.

lsattr: http://linux.die.net/man/1/lsattr
chattr: http://linux.die.net/man/1/chattr

On Thu, Jul 23, 2015 at 8:44 AM Emagnun <[email protected]>
wrote:

> Thanks for your reply. Where do I check this "chattr "i" attribute"???
>
>
> On Thursday, July 23, 2015 at 10:18:58 PM UTC+8, Network Ninja wrote:
>
>> I'm racking my brain to try to figure this one out. A quick Google search
>> (which I'm sure you did) is no help. You show sda2 is mounted rw on /. You
>> are clearly root when attempting to touch the file. Very odd. The only
>> thing I can think of is chattr "i" attribute set on the / folder.
>>
>> On Thu, Jul 23, 2015 at 5:01 AM Emagnun <[email protected]> wrote:
>>
> Hi,
>>>
>>> My server started acting weird this morning. I have the filesystem in
>>> read-write mode. But It doesn't allow me to create any files.
>>>
>>> mount command output:
>>> ==================
>>> /dev/sda2 on / type ext3 (rw)
>>>
>>> Try to create a new file
>>> =================
>>> [root@myserver /]# touch newFile touch: cannot touch `newFile':
>>> Read-only file system
>>>
>>> Any Ideas??? Thanks in advance.
>>>
>>> Regards,
>>> Emagnun
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Linux Users
>>> Group.
>>>
>> To post a message, send email to [email protected]
>>> To unsubscribe, send email to [email protected]
>>
>>
>>> For more options, visit our group at
>>> http://groups.google.com/group/linuxusersgroup
>>> References can be found at: http://goo.gl/anqri
>>> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules
>>> or http://cdn.fsdev.net/List-Rules.pdf)
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Linux Users Group" group.
>>>
>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>>
>> Jeremiah Bess
>>
> --

Jeremiah Bess

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to