Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chmod/chown does not work correctly ??? losetup/reiserfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
andy64
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2002
Posts: 78
Location: Munich, Germany

PostPosted: Tue Feb 01, 2005 8:42 pm    Post subject: chmod/chown does not work correctly ??? losetup/reiserfs Reply with quote

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
:evil:

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? :roll:
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Tue Feb 01, 2005 9:00 pm    Post subject: Reply with quote

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
Code:
chattr -a

and then delete the file. But only if the filesystem supports it.

[edit]
Code:
chattr -a the_file

I mean.
[/edit]
Back to top
View user's profile Send private message
andy64
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2002
Posts: 78
Location: Munich, Germany

PostPosted: Tue Feb 01, 2005 10:06 pm    Post subject: Reply with quote

Nope, does not work!

Code:

# chattr -a .Xauthority
chattr: Permision denied while trying to stat .Xauthority



Any other ideas? :roll:
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Tue Feb 01, 2005 10:11 pm    Post subject: Reply with quote

Maybe your system is borked. Try booting with a livecd and delete the file then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum