LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-17-2012, 11:39 AM   #1
logan_the_wolverine
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy Red Hat v5 disabling single user runlevel


hi friends..
i am using red hat linux v5 in pc. my pc is used my many people. some of them are changing my passward by booting in single user mode.this is iterating when we don't know own password. i want to disable single user mode runlevel. help me..how can do it.


some configuration of system..
OS: red hat v5
bootloader: Grub bootloader
 
Old 02-17-2012, 01:38 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi logan_the_wolverine,

Welcome to LQ!!!

Here are few things that you should first know about single user mode:

1. You cannot disable single user mode for root user. root user can get into single user mode by typing "init 1"
2. Normal users cannot go do "init 1" unless you have provided the access via sudo.

I believe your users are changing your password by getting in single user mode from grub. If that is the case you can password protect grub by performing following steps:

1. Login as root.
2. Run the following command:
Code:
grub-md5-crypt
3. It will prompt you to enter the password.
4. Enter the password and it will generate an md5 hash.
5. Copy that hash value (make sure you copy it properly)
6. Edit /boot/grub/grub.conf file using vi or vim as follows;
Code:
vi /boot/grub/grub.conf
7. Put that hash value in that file just below the line "timeout" as follows:
[code]password --md5 <copied hash value>

When you will reboot the system you will see that it will not let you edit grub by just pressing "e" you have to first hit "p" to enter the password and then you can edit grub entries.

Make sure that you take a backup of /boot/grub/grub.conf file before making any modifications
 
1 members found this post helpful.
Old 02-17-2012, 02:06 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Note that if this is a hilarious running joke, they'll probably just put in a CD and change it that way. BIOS password with no boot to cd possible?
 
Old 02-17-2012, 02:13 PM   #4
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Seems to me you are looking for a technological solution to a social issue.

If you escalate your security measures, a determined attacker will escalate their actions (such as using a Live CD and chroot) and you will limit the tools available to yourself to repair the damage. Physical access IS root access, this is a "feature not a bug."

Better solutions: Talk to your "friends" and make them stop this childish prank. Get your boss/school/parents involved. Don't leave your computer unattended in a public place. Lock your door. Encrypt your data. Protect your property and privacy by whatever means are legal in your jurisdiction.
 
1 members found this post helpful.
Old 02-21-2012, 02:34 AM   #5
logan_the_wolverine
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you... T3RM1NVT0R...
I implement this on my system and it works.
 
Old 02-21-2012, 02:43 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by snowpine View Post
Seems to me you are looking for a technological solution to a social issue.

If you escalate your security measures, a determined attacker will escalate their actions (such as using a Live CD and chroot) and you will limit the tools available to yourself to repair the damage. Physical access IS root access, this is a "feature not a bug."

Better solutions: Talk to your "friends" and make them stop this childish prank. Get your boss/school/parents involved. Don't leave your computer unattended in a public place. Lock your door. Encrypt your data. Protect your property and privacy by whatever means are legal in your jurisdiction.
I have the urge to say "Here here!" for the sake of it. +1, Thumbs Up, Excellent seller; would use again.
 
Old 02-21-2012, 02:48 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a bit old but you might want to read the red hat documentation on setting a bios password
http://docs.redhat.com/docs/en-US/Re...-boot-sec.html
http://docs.redhat.com/docs/en-US/Re...ootloader.html


but talk to the people
or they WILL start using a live cd

Last edited by John VV; 02-21-2012 at 02:50 AM.
 
  


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
Installing Windows XP, Red Hat and Ubuntu on a single Hard Disk. sachinsalave Linux - Newbie 5 08-04-2011 10:43 PM
USB IRQ disabling issue with self-built Red Hat kernel lennyk Linux - Kernel 0 02-08-2011 08:48 AM
[SOLVED] disabling interactive boot in Linux/Red Hat/ CentOS unix1adm Linux - General 4 02-12-2010 01:00 PM
Disabling single user when booting carcassonne Linux - Security 6 07-21-2005 02:55 PM
Processor for a server with Red Hat Linux 9 - single or dual? san_lss Linux - Hardware 1 03-19-2004 06:33 AM

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

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