LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2004, 07:58 AM   #1
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
root locked out


I have changed permissions to all files on the hard drive to 000. Stupid thing to do, but now I can't change it back, since I have restarted the computer and I can't login again as root or any other user.

I get a GDM error permissions should be set to 750. But How can I change them back if I can't login?

Thanks
 
Old 02-12-2004, 08:12 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
single user mode?

at bootloader prompt type:

kernel_name single (if using lilo)

this will give you a prompt.
 
Old 02-12-2004, 08:42 AM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Original Poster
Rep: Reputation: 45
still locked out

I am using grub on RH9.

I went into grub command prompt and run "find /boot/grub/grub.conf" and it got me file not found

I come to runlevel 5 and services start up just fine, it's just that I can't login anymore. The error I get is (I will retype it here:

Server authorization Directory (daemon/DervAuthDir) is set to /var/gdm but has the wrong permission. Permissions should be set to 0750. Please correct the permissions or configuration /etc/X11/gdm/gdm.conf and restart gdm.

I know what I should do, because it says so in the message. But I can't login as root or any other user as I get "Login Incorrect". That's because of changed permissions probably it can't read the login files.

Help!

Thanks!
 
Old 02-12-2004, 12:47 PM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Not sure about RH9, but try this.
On boot, hit 'e' at the splash screen(or wherever RH9 asks you to interfere with grub or select a kernel to boot).
edit the 'kernel*blahblah*' line, add an s(or 1) at the end, and boot.
check by typing 'runlevel', might return 'unknown' on that distro.
 
Old 02-12-2004, 05:48 PM   #5
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Original Poster
Rep: Reputation: 45
Saved

Thanks guys!

I typed 'a' at GRUB menu, and added single to kernel at boot, which got me into the system as single user and I changed the permissions back, so that everything works now. Except one thing. X doesn't work. Some bad permissions and some missing files. I understand the bad permissions, but where did the missing files go?

Is there a way I can reinstall X?

Does anyone know how to do that? I think it will be easier than finding all the bad permissions and missing files.
 
Old 05-17-2007, 10:39 AM   #6
ajcamp
LQ Newbie
 
Registered: Jan 2003
Location: Longmont, CO
Distribution: Debian, RH, Knoppix
Posts: 9

Rep: Reputation: 0
Root locked Out by PAM

Hi,

I locked out root user login by creating a PAM sshd.deny file.
How can I get root access?

Here's what I did -

1. vi /etc/pam.d/ssh
added the line:
auth required pam_listfile.so item=user sense=deny file=/etc/ssh/sshd.deny onerr=succeed

2. created /etc/ssh/sshd.deny with a user acct to block on the first line
blocked_user

3. service sshd restart

Now I can log in with my personal account, but cannot login as root.
I can't su - either.

!!!!!!!

Thanks for any help
AJ
 
Old 05-17-2007, 02:28 PM   #7
AlbinoJap
Member
 
Registered: Mar 2004
Posts: 36

Rep: Reputation: 15
Boot the machine into single user mode and modify the PAM config file.
 
  


Reply



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
How can "root" unlock a locked screen in Gnome? AZ_Rider Linux - Newbie 5 11-30-2011 01:28 AM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 01:30 PM
Root Directory Locked... *sigh* Sonshyne Linux - Newbie 9 06-19-2004 04:42 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
Locked Out Of Root Svha Linux - Security 8 10-04-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration