My server is booting in to emergency mode.

Issues related to applications and software problems and general support
Post Reply
benn
Posts: 2
Joined: 2020/10/04 06:57:32

My server is booting in to emergency mode.

Post by benn » 2020/10/04 07:22:11

Hello All,
I made a stupid mistake.
I set a chown for a regular user on files that are in /sbin directory.
Now I'm "stuck" in an emergency mode and can not change it.

Permissions I set:

Code: Select all

chown ansibleserver: /bin/mount
chown ansibleserver: /usr/sbin/mount.cifs
chown ansibleserver: /sbin/mount.cifs
chown ansibleserver: /bin/umount
The system is unable to mount now.
When I try to execute the following command from emergency mode:

Code: Select all

mount -o remount, rw /
I get the following error:

Code: Select all

mount: only root can use "--options" option (effective UID is 1000)
kernel version:
4.18.0-193.19.1

Is there a way I can fix this?

User avatar
TrevorH
Forum Moderator
Posts: 29903
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: My server is booting in to emergency mode.

Post by TrevorH » 2020/10/04 13:26:17

Boot from the install DVD in rescue mode (an option off the troubleshooting menu) and use the option to drop to a command prompt (option 3) and fix it from there.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”