LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2008, 07:42 AM   #1
premnarayan
LQ Newbie
 
Registered: Jan 2008
Location: noida
Distribution: archlinux, slackware
Posts: 21

Rep: Reputation: 15
Question Lost all file permissions after crash


Hi, I lost all file permissions on few files after a crash. When I try 'ls -l', I get permission denied errors and '?'s in place of permission bits. Even as root I cannot delete these files. My filesystem is Reiserfs.

Is there a way to bypass the permission checking on file access? Can anybody point out a method (low level system calls ???) to delete the files?
 
Old 04-11-2008, 08:39 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
You need to check and repair the filesystem. It seems to be corrupt after the crash.

man fsck
 
Old 04-11-2008, 08:41 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
I'll bet that the problem with the filesystem was the cause of the crash.
 
Old 04-11-2008, 08:52 AM   #4
premnarayan
LQ Newbie
 
Registered: Jan 2008
Location: noida
Distribution: archlinux, slackware
Posts: 21

Original Poster
Rep: Reputation: 15
I suspected that and had re-run fsck (It had already run when i booted after crash). No change!
 
Old 04-13-2008, 03:07 PM   #5
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 39
Check logfiles. There is no user with more power than root and he has already full filesystem access.
 
Old 04-14-2008, 12:36 AM   #6
premnarayan
LQ Newbie
 
Registered: Jan 2008
Location: noida
Distribution: archlinux, slackware
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks all.... problem resolved by rebuilding filesystem tree.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux server crash lost hard disk and firewall cyberfruits Linux - Server 1 03-11-2008 10:36 AM
Bind have lost some zone in named.conf & lost db file achilles Linux - Enterprise 0 04-19-2007 07:22 AM
lost+found permissions r.stiltskin Debian 2 02-22-2006 01:18 AM
Hard Disk crash, everything thrown into lost+found...and now what? vous Linux - Hardware 6 01-03-2006 07:47 AM
lost sound and changed permissions bird603568 Slackware 5 07-01-2005 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration