Set Password for Single User Mode on Linux (CentOS / RHEL)

Posted by Unknown Senin, 16 September 2013 0 komentar
http://www.nextstep4it.com/categories/how-to/single-user-mode

Overview :

Setting Password for Single User Mode in Linux , adds security to Linux boxes. If some one access your server physically & reboot server and then  tries to change root password from single user mode . In that case if password is set on single user mode , one has to first enter root password , then only can reset root password .

Note - In Debian like Operating System require root password when booting into single user mode or recovery mode. But RHEL &  CentOS allows access from the console into single user mode without a password.

Setting Password for Single User Mode on Centos 5.X / RHEL 5.X )

Edit the file /etc/inittab , add “su:S:wait:/sbin/sulogin” above the line initdefault  as shown below :

#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg,
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
su:S:wait:/sbin/sulogin
id:5:initdefault:


Setting Password for Single User Mode on Centos 6.X / RHEL 6.X )

Edit the file /etc/sysconfig/init & replace 'SINGLE=/sbin/sushell'  with '/sbin/sulogin' as shown below :

# What ttys should gettys be started on?
ACTIVE_CONSOLES=/dev/tty[1-6]
# Set to '/sbin/sulogin' to prompt for password on single-user mode
# Set to '/sbin/sushell' otherwise

SINGLE=/sbin/sulogin
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Set Password for Single User Mode on Linux (CentOS / RHEL)
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidblackberries.blogspot.com/2013/09/set-password-for-single-user-mode-on.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android blackberry.