LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-16-2009, 11:31 AM   #1
cheezy86
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
edited the wheel group file and i cant log in as root again in the terminal


i am new to linux, fedora 10 to be precise. i am in the process of hardening my system. i logged into the terminal as root, trying to restrict su with PAM, and i edited the su file in the /etc/pam.d directory, commented on the line

#auth required /lib/security/pam_wheel.so use_uid file. which became

#auth required /lib/security/pam_wheel.so use_uid group=allowsu

and now i cant log in as root in the terminal to continue my configurations.
at the prompt i type

[cheezy@linux~]# su root
password:
and it displays

Incorrect password

even when i know the password, what do i do please anyone?
 
Old 05-16-2009, 12:46 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,117
Blog Entries: 2

Rep: Reputation: 113Reputation: 113
is your user part of group allowsu, if not then they wouldn't be able to su to root
 
Old 05-16-2009, 12:57 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You can boot from a live CD like Knoppix and restore the original file, or eventually try to boot in single user mode (it should login to root without password). To do that press 'e' when the grub menu appears and add simply
Code:
1
at the and of the boot options line.
 
Old 05-16-2009, 02:42 PM   #4
cheezy86
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot..

"You can boot from a live CD like Knoppix and restore the original file, or eventually try to boot in single user mode (it should login to root without password). To do that press 'e' when the grub menu appears and add simply

Code:
1 at the and of the boot options line".

I tried editing the grub menu, added 1 to the boot list and tried booting. but the screen goes blank and give me an error message "Error 27" when i type enter it returns me to the grub menu. what can i dp
 
Old 05-16-2009, 04:04 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
It does not accept 1. Then try
Code:
single
 
Old 05-16-2009, 07:04 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by cheezy86 View Post
#auth required /lib/security/pam_wheel.so use_uid file. which became

#auth required /lib/security/pam_wheel.so use_uid group=allowsu
How odd ... if that's the only change you made there should
be no impact; that line is a comment.


Cheers,
Tink
 
Old 05-16-2009, 07:37 PM   #7
cheezy86
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
edited the line so it's no more a comment...

auth required /lib/security/pam_wheel.so use_uid group=allowsu

went into the file through the /etc/pam.d and typed vi su at the prompt but it opens as a read only file. now how do i get it to have write and executable rights, so i can change it back to a comment? please someone help, its drivinmg me crazy
 
  


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
How do I make it so users have to be in the wheel group to su to root? abefroman Linux - Security 7 05-02-2005 01:02 AM
Log in terminal as Root ron126 Linux - Newbie 3 03-22-2005 10:45 AM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 01:30 PM
Users can't log in unless part of the root group jeffreybluml Linux - Newbie 3 12-02-2004 07:24 PM
limiting su root with wheel group? kj6loh Linux - General 17 09-02-2004 08:45 AM


All times are GMT -5. The time now is 12:03 PM.

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