Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fsck - Give root password for maintenance
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dachris
n00b
n00b


Joined: 17 Aug 2006
Posts: 62

PostPosted: Thu Oct 14, 2010 3:33 pm    Post subject: fsck - Give root password for maintenance Reply with quote

Quote:
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
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Thu Oct 14, 2010 3:47 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
dachris
n00b
n00b


Joined: 17 Aug 2006
Posts: 62

PostPosted: Thu Oct 14, 2010 4:09 pm    Post subject: Reply with quote

/etc/conf.d/rc

Quote:
# 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
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Thu Oct 14, 2010 4:52 pm    Post subject: Reply with quote

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:

<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>
Back to top
View user's profile Send private message
dachris
n00b
n00b


Joined: 17 Aug 2006
Posts: 62

PostPosted: Thu Oct 14, 2010 5:01 pm    Post subject: Reply with quote

you mean setting sulogin to something else to not ask for the pw?
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Thu Oct 14, 2010 5:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
dachris
n00b
n00b


Joined: 17 Aug 2006
Posts: 62

PostPosted: Thu Oct 14, 2010 5:26 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum