PDA

View Full Version : [ubuntu] root user cannot change delete nor create any file


maq21
July 29th, 2008, 09:19 AM
Dear All;
I have Ubuntu 6.06.1, and I'm running it as dns server, The problem that occur is that the root user cannot change create nor delete any file and the thing that make me feel in crazy is that the root user own these files but it cannot make any change by the way the permitions is -rw-r--r- for any file
plzzzzzzzz help me plzzzzzz

ilrudie
July 29th, 2008, 10:22 AM
Dear All;
I have Ubuntu 6.06.1, and I'm running it as dns server, The problem that occur is that the root user cannot change create nor delete any file and the thing that make me feel in crazy is that the root user own these files but it cannot make any change by the way the permitions is -rw-r--r- for any file
plzzzzzzzz help me plzzzzzz

Are you sure you are actually root? Ubuntu disables the root account by default so you can't login as root unless you have made changes. Run id to determine which user you are. If you are not root you can become root by running sudo su - or run any command as root by using sudo. Use gksudo if you need to run gui applications as root.

cdenley
July 29th, 2008, 11:26 AM
Does root have write permissions for the parent directory?

ilrudie
July 29th, 2008, 11:35 AM
Does root have write permissions for the parent directory?
Not really important. root always has write permissions. Even when you specifically say root does not have write permissions it still does. Programs that check for permissions like vi will say that the file is read only but you can still force a write if you are root.

knightcoder
July 29th, 2008, 11:39 AM
root = God

ilrudie
July 29th, 2008, 11:44 AM
haha, nice avatar. What do you call it? Battux? Batpenguin?

pauper
July 29th, 2008, 11:52 AM
...The problem that occur is that the root user cannot change create nor delete any file...

Did you by any chance change file attributes?

man lsattr
man chattr

maq21
September 24th, 2009, 11:14 AM
Hello guys,

Sorry the issue was because of "system corruption" so as you know when that case occur you cannot do anything, so the system protect itself and no one can edit files nor create new ons. .... ;):lolflag:

maq21
January 14th, 2010, 06:44 AM
The real issue is when there is a lot of errors on the file system (ext3 fs) there is option on the mount is "errors=remount-ro" which will remount the file system in read only mode
and thats it, so the solution maybe will be remount it with r/w mode (but I didnt test it so i dont recommond that except in case that you dont have any other solution) normally the solution is reinstall the os but of course after you backup your data.