 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

5th March 2011, 03:53 PM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 17

|
|
|
Prevent Single Mode
Hello,
Is it possible to prevent my system into going silent mode if someone had pyshical access?
Relatives keep coming over and changing the admin password, and im guessing they do it via this way right?
Last edited by zokstar; 6th March 2011 at 07:27 AM.
|

5th March 2011, 04:08 PM
|
|
SELinux Contributor
|
|
Join Date: May 2008
Posts: 621

|
|
|
Re: Prevent Silent Mode
You mean single user mode?
1. put a lock on your case
2. change bios to only allow loading from specified hard disc.
3. set password on your bios
4. set grub password.
5. configure /etc/init/rcS-sulogin.conf to use "exec /sbin/sulogin" instead of "exec $SINGLE"
Last edited by domg472; 5th March 2011 at 04:11 PM.
|

5th March 2011, 10:53 PM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 17

|
|
|
Re: Prevent Silent Mode
yes so sorry, single user mode!
I set a grub password but it didnt go very well..
I went into terminal > grub > md5crypt > password. Then i edited /boot/menu.lst with the md5 "encryption key" (followed a guide i found online)
Can you recommend best way of doing it?
If i was to use step 5, what exactly does that do? Disabled single mode?
|

6th March 2011, 04:13 PM
|
|
SELinux Contributor
|
|
Join Date: May 2008
Posts: 621

|
|
|
Re: Prevent Silent Mode
Quote:
Originally Posted by zokstar
yes so sorry, single user mode!
I set a grub password but it didnt go very well..
I went into terminal > grub > md5crypt > password. Then i edited /boot/menu.lst with the md5 "encryption key" (followed a guide i found online)
Can you recommend best way of doing it?
|
edit /etc/grub..conf instead:
password --md5 "encryption key"
The /sbin/sulogin requires one to enter roots password to enter single user mode.. instead of allowing one to enter single user mode without a password.
|

6th March 2011, 03:06 AM
|
 |
Registered User
|
|
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105

|
|
|
Re: Prevent Silent Mode
There's another, even sneaker way to stop those malicious little twits from messing with your computer. Do this as root:
mv /usr/bin/passwd /usr/bin/.password
and let them wonder why they can't change your password. Normally, I'd not suggest messing around with system programs like that but strong measures are needed to defend your system from vandalism.
__________________
Registered Linux user #470359 and permanently recovered BOFH.
Any advice in this post is worth exactly what you paid for it.
|

6th March 2011, 03:48 AM
|
 |
Registered User
|
|
Join Date: Jul 2008
Posts: 1,239

|
|
|
Re: Prevent Silent Mode
If others have access to change the ROOT PASSWORD you have MORE PROBLEMS than just THIS!
Is there some reason why they have [or NEED] such access? - otherwise, I'd be putting a BOOT up someone's BACKSIDE! (securing the machine is your FIRST LINE of defence)
__________________
Chilly Willy, Tux's little cousin...
By its very nature, Windows is a PANE!
|

6th March 2011, 04:00 AM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,925

|
|
|
Re: Prevent Silent Mode
You can enable password for single user mode by adding following to your /etc/inittab:
Code:
~~:S:wait:/sbin/sulogin
|

6th March 2011, 04:34 PM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: Prevent Silent Mode
Quote:
Originally Posted by pete_1967
You can enable password for single user mode by adding following to your /etc/inittab:
Code:
~~:S:wait:/sbin/sulogin
|
After adding this line to my /etc/inittab, I was never prompted for a password when I booted into single user mode.
|

6th March 2011, 05:27 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285

|
|
|
Re: Prevent Silent Mode
Quote:
Originally Posted by zokstar
Relatives keep coming over and changing the admin password, and im guessing they do it via this way right?
|
Are your relatives geeks? Mine couldn't tell you how much ram they have. Using single mode to change the root password is a little bit geeky.
Why do they change it?
|

6th March 2011, 07:26 AM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 17

|
|
|
Re: Prevent Silent Mode
well its my brother in law.. He is a geek, and knows he's way around linux pretty good..
Quote:
Originally Posted by pete_1967
You can enable password for single user mode by adding following to your /etc/inittab:
Code:
~~:S:wait:/sbin/sulogin
|
Thanks, i'll try this method
|

6th March 2011, 02:51 PM
|
 |
Registered User
|
|
Join Date: Aug 2009
Location: College Station, TX
Posts: 501

|
|
|
Re: Prevent Silent Mode
On your grub thingie:
1) you said /boot/menu.lst... I assume you meant /boot/grub/menu.lst (which is /boot/grub/grub.conf).
2) the line to add should have looked something like:
Code:
password --md5 <MD5CRYPTEDPASSWORD>
which should deny editing of the boot line unless a valid password is given. Is that what the tutorial stated?
SS
|

6th March 2011, 03:07 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285

|
|
|
Re: Prevent Silent Mode
Can you simply hide the computer prior to his visits? If he's familiar with Linux, editing grub won't stop him from booting from a CD or USB key.
|

6th March 2011, 03:13 PM
|
 |
Registered User
|
|
Join Date: Aug 2009
Location: College Station, TX
Posts: 501

|
|
|
Re: Prevent Silent Mode
Quote:
Originally Posted by kurtdriver
Can you simply hide the computer prior to his visits? If he's familiar with Linux, editing grub won't stop him from booting from a CD or USB key.
|
That's why you set/lock the BIOS (and put a lock on the case... so he can't get to the jumper to reset to BIOS defaults) as domg472 suggested.
SS
|

6th March 2011, 04:59 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285

|
|
|
Re: Prevent Silent Mode
Quote:
Originally Posted by SiliconSlick
That's why you set/lock the BIOS (and put a lock on the case... so he can't get to the jumper to reset to BIOS defaults) as domg472 suggested.
SS
|
Can all cases can easily be locked?
Another option would be to setup up Fedora on another partition, or drive do a little customization, and boot into it prior to his arrival. Give him the root password, (this may require a pretext of some sort).
Does he read Fedora Forum?
|

6th March 2011, 05:24 PM
|
|
SELinux Contributor
|
|
Join Date: May 2008
Posts: 621

|
|
|
Re: Prevent Silent Mode
Quote:
Originally Posted by kurtdriver
Can all cases can easily be locked?
Another option would be to setup up Fedora on another partition, or drive do a little customization, and boot into it prior to his arrival. Give him the root password, (this may require a pretext of some sort).
Does he read Fedora Forum?
|
security by obscurity is no solution
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 03:18 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|