Disable Root SSH Login on HP UX
# cd /opt/ssh/etc
# vi sshd_config
Change the line:
PermitRootLogin yes
change into like below
PermitRootLogin no
save and exit
Then stop and restart SSH.
# /sbin/init.d/secsh stop
# /sbin/init.d/secsh start
You will then NOT be allowed to ssh as root.
==============================================
Disable Root SSH Login on Linux
#vi /etc/ssh/sshd_config
Find this section in the file, containing the line with “PermitRootLogin” in it.
#LoginGraceTime 2m
#PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
Make the line look like this to disable logging in through ssh as root.
PermitRootLogin no
Then restart the sshd service:
# /etc/init.d/sshd restart
Showing posts with label Root Passwd. Show all posts
Showing posts with label Root Passwd. Show all posts
Sunday, 11 December 2011
Thursday, 24 November 2011
If you forget the root password in hp Unix ?
Recover root password in HP Unix
While boot the server Interact the normal boot and,
>boot
Interact with IPL ? Y
ISL>hpux -iS
passwd root
>>enter the new passwd
While boot the server Interact the normal boot and,
>boot
Interact with IPL ? Y
ISL>hpux -iS
passwd root
>>enter the new passwd
Wednesday, 23 November 2011
Reset root password in HP UX
1.Boot the server into single user mode
Interrrupt while booting the server
HPUX> boot -is
2.mount /usr
3. If it is trusted system
#/usr/lbin/tsconvert -r
4.Then reset the root password
#passwd root
or
# vi /etc/passwd
null the passwd field for root user.
5. If root user is locked then unlock using below command
#/usr/lbin/modprpw -k root
6. Once server is up in runlevel 3 again u need to convert as trusted systems
#/usr/lbin/tsconvert
Interrrupt while booting the server
HPUX> boot -is
2.mount /usr
3. If it is trusted system
#/usr/lbin/tsconvert -r
4.Then reset the root password
#passwd root
or
# vi /etc/passwd
null the passwd field for root user.
5. If root user is locked then unlock using below command
#/usr/lbin/modprpw -k root
6. Once server is up in runlevel 3 again u need to convert as trusted systems
#/usr/lbin/tsconvert
Root password reset in Linux
1. Select the kernel
2. Press the "e" key to edit the entry
3. Select second line (the line starting with the word kernel)
4. Press the "e" key to edit kernel entry so that you can append single user mode
5. Append the letter "S" (or word Single) to the end of the (kernel) line
6. Press ENTER key
7. Now press the b key to boot the Linux kernel into single user mode
8. At prompt type passwd command to reset password:
You need to mount at least / and other partitions:
# mount -t proc proc /proc
# mount -o remount,rw /
Change the root password,
# passwd
thenreboot system:
# sync
# reboot
2. Press the "e" key to edit the entry
3. Select second line (the line starting with the word kernel)
4. Press the "e" key to edit kernel entry so that you can append single user mode
5. Append the letter "S" (or word Single) to the end of the (kernel) line
6. Press ENTER key
7. Now press the b key to boot the Linux kernel into single user mode
8. At prompt type passwd command to reset password:
You need to mount at least / and other partitions:
# mount -t proc proc /proc
# mount -o remount,rw /
Change the root password,
# passwd
thenreboot system:
# sync
# reboot
How to disable password age in HP UX ?
HPUX password aging disable:
passwd -x -1 user_id
for i in user1 user2 user3
do
passwd -x -1 $i
done
passwd -x -1 user_id
for i in user1 user2 user3
do
passwd -x -1 $i
done
lock / unlock account user id on HP-UX trusted Systems: How to ?
/usr/lbin/getprpw useraccount
unlock / enable / reactivate:
/usr/lbin/modprpw -k useraccount
lock / expire password:
/usr/lbin/modprpw -e useraccount
Note : Do not use a capital E, as it will expire the password on all user accounts.
unlock / enable / reactivate:
/usr/lbin/modprpw -k useraccount
lock / expire password:
/usr/lbin/modprpw -e useraccount
Note : Do not use a capital E, as it will expire the password on all user accounts.
Subscribe to:
Posts (Atom)