LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-17-2005, 03:41 PM   #1
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Rep: Reputation: 21
root gets 'Permission denied' to directory


Hi.

I'm running SuSE 10 and recently had a power failure. On restart, I found that access to a home folder '/home/mike' had been lost.

I can log through the GUI as root and any user except for mike. When logged in as root and using konqueror, the folder /home/mike appears to be missing.

However, if I log in as root and do 'ls /home', I get the message "/bin/ls: /home/mike: Permission denied".

The partition is definately mounted rw. Root has the id "uid=0(root) gid=0(root) groups=0(root)". I have tried chown, getfacl, chattr on /home/mike, but get Permission denied messages each time.

I can see the /home/mike directory using mc, but it shows up in red as "?mike" If I try to access it, I get "Permission denied (13) "

The other wierd thing (Possibly the clue!?!) is that the modification time on the directory has been set to 01 Jan 1970. The timestamps on all other files are unaffected, and the system time is still correct.

So, I have a directory I need to access, and root does not appear to be able to get in there. I may well be able to get at it by booting to a live CD, but I don't have one with me at the moment, and would in any case be very interested to find what the problem is.

Any suggestions gratefully accepted!

Mike.
 
Old 11-18-2005, 02:56 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
What are the permissions on /home/mike (#ls -l /home/mike).
 
Old 11-18-2005, 04:15 AM   #3
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 21
"/bin/ls: /home/mike: Permission denied"

I don't think that this is a permissions problem. I think that it's more likely to be a corruption of the inode during the power failure.

As I say, the ONLY place I can see the directory from is through mc, where it is prefixed by a "?". The time stamp reads 01/01/1970. I can't even access it to read the permissions list.

I know that reiser keeps copies of the superblock around the disk somewhere - I'll see what I can do with reiserfsck.

So much for journaling!!
 
  


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
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 06:50 PM
permission denied to home directory ekdya Debian 3 11-08-2005 04:24 PM
Login against active directory. Get permission denied! ZilenT-X Linux - Newbie 6 08-15-2005 04:29 AM
permission denied when opening directory pilot1 Linux - General 1 10-23-2002 08:27 PM
permission denied when mounting nfs directory keirobyn Linux - Networking 3 01-29-2002 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:09 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