Thursday, 16 January 2014

Password in History List

I logged on to a Solaris server as user oracle and was prompted to change its password. I was in a hurry so I tried to reuse the old password. This failed so I had to use a new one:
 
Password:
Warning: Your password has expired, please change it now.
 
New Password:
sshd-kbdint: Password in history list.
 
New Password:
Re-enter new Password:
sshd-kbdint: password successfully changed for oracle
 
We store our passwords in a spreadsheet which can only be accessed by certain people. A colleague had locked this and gone home so I could not update it with the new password. I tried to reinstate the old password from within the UNIX session but failed again for a different reason:
 
Solaris:oracle passwd
passwd: Changing password for oracle
Enter existing login password:
passwd: Sorry: less than 7 days since the last change.
Permission denied
Solaris:oracle
 
I logged on as root and this time I was able to reuse the old oracle user password:
 
Solaris:root passwd oracle
New Password:
Re-enter new Password:
passwd: password successfully changed for oracle
Solaris:root

Thursday, 9 January 2014

How to See your IP Address in UBUNTU

You can do this from the Linux prompt as follows. The value you want is in bold. I hope to be using this a lot in future posts:

UBUNTU: ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:e7:f1:92 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 Base address:0x9800

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:217564 (217.5 KB)  TX bytes:217564 (217.5 KB)

wlan0     Link encap:Ethernet  HWaddr 00:14:6c:8a:f4:72 
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::214:6cff:fe8a:f472/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39507 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37777 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:39342715 (39.3 MB)  TX bytes:7605863 (7.6 MB)

UBUNTU: