Results 1 to 7 of 7
Hello Guys.
I have folder on file server. Looks like right belongs to root. But when I'm logged in as root I'm getting access denied (perrmisions) when I'm trying open. ...
- 05-23-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 5
Folder - Denied access ?
Hello Guys.
I have folder on file server. Looks like right belongs to root. But when I'm logged in as root I'm getting access denied (perrmisions) when I'm trying open. But I can open this folder when I'm logged in as user. I know it look bit mixed up but maybe ypu have any idea how to get out from this mess. many thanks
- 05-23-2008 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
When you are logged in as root, run the following commands
Post back the output.Code:echo $UID ls -l <folder>
- 05-23-2008 #3Just Joined!
- Join Date
- May 2008
- Posts
- 5
echo $UID gave 0 and ls -l <folder> gave /bin/ls: /<folder> Perrmission denied. The other thing which is strange. All other folders belongs to group Root but this particular one for some reson belongs to DEAMON. Maybe that is the problem. There is no login for DEAMON
- 05-23-2008 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
By the looks of that I'd say you've been rooted. Shutdown, get off the network and run from a livedisc. Try to run a rootkit check from the livedisc and see how you're getting on.
Have a look at this tool - chkrootkit -- locally checks for signs of a rootkit
- 05-23-2008 #5Just Joined!
- Join Date
- May 2008
- Posts
- 5
Do you think is virus issue
- 05-23-2008 #6Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
No not a virus, as I said it sounds like symptoms of a rootkit. I would go about checking your system with the tool I linked to as soon as possible.
- 05-23-2008 #7Linux User
- Join Date
- May 2008
- Location
- NYC, moved from KS & MO
- Posts
- 251
What's the result of (run as root) the following command?
ls -ld the_folder_in_question
if it looks something like
d-******** ... the_folder_in_question(The immediate dash after the letter d means the owner of the folder has no permission to list (dir) the folder)
then change the folder permission:
chmod u+r the_folder_in_question
now see if you can list it
ls -l the_folder_in_question


Reply With Quote