View previous topic :: View next topic |
Author |
Message |
andy64 Tux's lil' helper
Joined: 27 Jul 2002 Posts: 78 Location: Munich, Germany
|
Posted: Tue Feb 01, 2005 8:42 pm Post subject: chmod/chown does not work correctly ??? losetup/reiserfs |
|
|
Right now I'm unable to start the X-Server; the file .Xauthority can't be deleted. The system hangs completely and has to be rebooted!
I have an aes encrypted file, that I use as home directory:
losetup -e aes-256 /dev/loop0 /data/crypt/cfile
mount /dev/loop0 /home (the filesystem is reiserfs)
After doing this, the home directory for the user andy is there. Now there is a file .Xauthority with the ownership root:root and permissions 000.
Despite being root, it's impossible to assign something to this file via chmod or chown; I get always the error message:
chmod: cannot access `.Xauthority´: Permission denied
How can I get rid of this file? I also think that this is a bad bug that the system gets completely crashed. Only a hard reset helps!
Any ideas? |
|
Back to top |
|
|
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Tue Feb 01, 2005 9:00 pm Post subject: |
|
|
I am using Reiser4, not ReiserFS. I do not remember if there is a 'chattr' implementation with ReiserFS (there is none with Reiser4, but ext2/3 have it).
You could try
and then delete the file. But only if the filesystem supports it.
[edit]
I mean.
[/edit] |
|
Back to top |
|
|
andy64 Tux's lil' helper
Joined: 27 Jul 2002 Posts: 78 Location: Munich, Germany
|
Posted: Tue Feb 01, 2005 10:06 pm Post subject: |
|
|
Nope, does not work!
Code: |
# chattr -a .Xauthority
chattr: Permision denied while trying to stat .Xauthority
|
Any other ideas? |
|
Back to top |
|
|
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Tue Feb 01, 2005 10:11 pm Post subject: |
|
|
Maybe your system is borked. Try booting with a livecd and delete the file then. |
|
Back to top |
|
|
|