Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th March 2011, 03:53 PM
zokstar Offline
Registered User
 
Join Date: Feb 2011
Posts: 17
linuxchrome
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.
Reply With Quote
  #2  
Old 5th March 2011, 04:08 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
linuxfedorafirefox
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"
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/

Last edited by domg472; 5th March 2011 at 04:11 PM.
Reply With Quote
  #3  
Old 5th March 2011, 10:53 PM
zokstar Offline
Registered User
 
Join Date: Feb 2011
Posts: 17
linuxchrome
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?
Reply With Quote
  #4  
Old 6th March 2011, 04:13 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
linuxfedorafirefox
Re: Prevent Silent Mode

Quote:
Originally Posted by zokstar View Post
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.
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/
Reply With Quote
  #5  
Old 6th March 2011, 03:06 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
linuxfedorafirefox
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.
Reply With Quote
  #6  
Old 6th March 2011, 03:48 AM
Chilly Willy's Avatar
Chilly Willy Online
Registered User
 
Join Date: Jul 2008
Posts: 1,239
linuxfedorafirefox
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!
Reply With Quote
  #7  
Old 6th March 2011, 04:00 AM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,925
linuxopera
Re: Prevent Silent Mode

You can enable password for single user mode by adding following to your /etc/inittab:
Code:
~~:S:wait:/sbin/sulogin
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #8  
Old 6th March 2011, 04:34 PM
motnahp00
Guest
 
Posts: n/a
windows_7ie
Re: Prevent Silent Mode

Quote:
Originally Posted by pete_1967 View Post
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.
Reply With Quote
  #9  
Old 6th March 2011, 05:27 AM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285
linuxfedorafirefox
Re: Prevent Silent Mode

Quote:
Originally Posted by zokstar View Post
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?
Reply With Quote
  #10  
Old 6th March 2011, 07:26 AM
zokstar Offline
Registered User
 
Join Date: Feb 2011
Posts: 17
linuxchrome
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 View Post
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
Reply With Quote
  #11  
Old 6th March 2011, 02:51 PM
SiliconSlick's Avatar
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
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
Reply With Quote
  #12  
Old 6th March 2011, 03:07 PM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285
linuxfedorafirefox
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.
Reply With Quote
  #13  
Old 6th March 2011, 03:13 PM
SiliconSlick's Avatar
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
Re: Prevent Silent Mode

Quote:
Originally Posted by kurtdriver View Post
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
Reply With Quote
  #14  
Old 6th March 2011, 04:59 PM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285
linuxfedorafirefox
Re: Prevent Silent Mode

Quote:
Originally Posted by SiliconSlick View Post
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?
Reply With Quote
  #15  
Old 6th March 2011, 05:24 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
linuxfedorafirefox
Re: Prevent Silent Mode

Quote:
Originally Posted by kurtdriver View Post
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
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/
Reply With Quote
Reply

Tags
mode, prevent, silent

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Silent boot mode not working. kauboy Using Fedora 3 29th September 2008 05:07 PM
Silent Symphony geminiguy Linux Chat 6 6th August 2007 02:22 AM
Silent and Verbose mode massimomm Using Fedora 3 31st March 2006 10:50 AM
logwatch has become silent pushback Security and Privacy 2 30th August 2005 07:00 PM
Gaim silent mode?? Stickyfgz Using Fedora 3 6th March 2005 06:15 AM


Current GMT-time: 03:18 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat