Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

fsck - Give root password for maintenance

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
dachris
n00b
n00b
Posts: 62
Joined: Thu Aug 17, 2006 7:44 pm

fsck - Give root password for maintenance

  • Quote

Post by dachris » Thu Oct 14, 2010 3:33 pm

An automatic file system check (fsck) of the root filesystem failed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the root filesystem mounted in read only mode.
Give root password for maintenance(or type Control-D to continue):
is there a way in gentoo to override this and "automatically" do the manual check without entering the root pw? :)

i heard in debian they have an option in /etc/default/rcS -> FSCKFIX=yes

has gentoo something similar?
thanks
Top
rh1
Guru
Guru
User avatar
Posts: 501
Joined: Sat Apr 10, 2010 8:22 am

  • Quote

Post by rh1 » Thu Oct 14, 2010 3:47 pm

Shooting from the hip here but look in /etc/rc.conf, or if on stable, i believe it's /etc/conf.d/rc.
I do remember seeing some thing about setting shell for when it fails. I think it ask for password because it's set to something like /sbin/sulogin.
Top
dachris
n00b
n00b
Posts: 62
Joined: Thu Aug 17, 2006 7:44 pm

  • Quote

Post by dachris » Thu Oct 14, 2010 4:09 pm

/etc/conf.d/rc
# RC_FORCE_AUTO tries its best to prevent user interaction during the boot and
# shutdown process. For example, fsck will automatically be run or volumes
# remounted to create proper directory trees. This feature can be dangerous
# and is meant ONLY for headless machines where getting a physical console
# hooked up is a huge pita.

RC_FORCE_AUTO="no"
maybe this is the option what i'm looking for. thanks for your hint
Top
rh1
Guru
Guru
User avatar
Posts: 501
Joined: Sat Apr 10, 2010 8:22 am

  • Quote

Post by rh1 » Thu Oct 14, 2010 4:52 pm

No, not what i meant but maybe what you want. I don't use stable, on ~arch system, setting were moved from /etc/conf.d/rc to /etc/rc.conf.

This is what i was talking about , from /etc/rc.conf:

Code: Select all

<snip>
# If we need to drop to a shell, you can specify it here. 
# If not specified we use $SHELL, otherwise the one specified in /etc/passwd, 
# otherwise /bin/sh 
# Linux users could specify /sbin/sulogin 
rc_shell=/sbin/sulogin 
<snip>
Top
dachris
n00b
n00b
Posts: 62
Joined: Thu Aug 17, 2006 7:44 pm

  • Quote

Post by dachris » Thu Oct 14, 2010 5:01 pm

you mean setting sulogin to something else to not ask for the pw?
Top
rh1
Guru
Guru
User avatar
Posts: 501
Joined: Sat Apr 10, 2010 8:22 am

  • Quote

Post by rh1 » Thu Oct 14, 2010 5:06 pm

Yes , /bin/bash or /bin/sh maybe. Of course, i probably dodn't have to tell you about the security issues that presents if anyone else has physical access to the machine. Like everything else, there's always a trade off between convenience and security.
Top
dachris
n00b
n00b
Posts: 62
Joined: Thu Aug 17, 2006 7:44 pm

  • Quote

Post by dachris » Thu Oct 14, 2010 5:26 pm

i need this setting because my provider moves my servers to a new datacenter, some of them will do a fsck after reboot and I don't want them to plug a monitor and keyboard on every server to enter the password.
i'll change this setting back after the move, thats not the problem :)
the problem is finding this option in the "stable" version ;)
simply adding it to rc.conf will not work it think
Top
Post Reply

7 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic