Tag Archives: password

Force expiry of a Linux Account

Just locking the linux account isn’t enough, since the user can use other methods to login, such as PKI. The best solution would be to force expire the account: sudo chage -M 0 username Advertisements

Posted in Linux | Tagged , , , | Leave a comment

Create random passwords from command line in Ubuntu

There are two handy tools that generate random passwords from the command line in Ubuntu (and other distros of course). It’s more secure to use passwords from these tools instead of online password generators. First of which is apg and … Continue reading

Posted in Ubuntu, Uncategorized | Tagged , , , , | Leave a comment

How to reset lost password on Ubuntu

From the official Ubuntu LostPassword documentation (with minor changes to work on more recent versions of Ubuntu) Reboot your computer. Hold Shift during boot to start GRUB menu. Press e┬áto edit. Find the line starting with “linux” and change “ro” … Continue reading

Posted in Linux, Uncategorized | Tagged , , | Leave a comment

How to reset your administrative user password in ubuntu

It’s useful in case you forget your password and unable to access your system. All you have to do is: startup your machine and select the kernel that you use at the grub menu press e to start editing Find … Continue reading

Posted in Linux, Mint, Ubuntu | Tagged , , , | Leave a comment

Password-less SSH Login to Ubuntu Server

On the client: ========================================================================================= socrat@socrat-laptop ~/.ssh $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/socrat/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/socrat/.ssh/id_rsa. Your … Continue reading

Posted in Linux, Ubuntu | Tagged , , , , , , | Leave a comment