How to change UID & GID in Linux for any user

As the commands entered below have the potential to cause inaccessibility to files or data, make sure you have taken a data back up first. Once you have backed up your data, proceed as follows. Do not proceed further if you are not confident or aware of what you are doing. Proceed as below at . . . → Read More: How to change UID & GID in Linux for any user

Evolution keeps asking for passwords in Ubuntu after updates

After an update, the Evolution email client on Ubuntu 14.04 LTS would not remember any passwords. Each time it tries to retrieve messages, it asks that passwords be entered. Even though the check box to Add the password to the key ring is clicked, it never stopped asking. It neither stored passwords in the key . . . → Read More: Evolution keeps asking for passwords in Ubuntu after updates

How to retrieve the mount passphrase of encrypted home folder of a user

Login as the user whose passphrase you want to see. Enter the following command in a terminal window: $ sudo ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase <enter>

Enter the user’s login password when asked. You will be see a long string of digits & numbers (hexadecimal). That is the passphrase.

Record it in a safe place for future retrival . . . → Read More: How to retrieve the mount passphrase of encrypted home folder of a user

Use GUI to add a new user with encrypted home folder

By default, Ubuntu 12.04 user manager does not allow you to add new users with encrypted home folders. Refer http://www.askmeaboutlinux.com/?p=1898 to know how it is done from the command line.

To add a new user using GUI, you should install: $ sudo apt-get install gnome-system-tools <enter>

This gives additional options that you can enter when adding . . . → Read More: Use GUI to add a new user with encrypted home folder

Add new user with encrypted home folder in Ubuntu

By default, Ubuntu 12.04 does not allow you to add a new user with an encrypted home directory using the GUI user manager.

To add a user with encrypted home folder, do following:

Start up the terminal on your system as in this post http://www.askmeaboutlinux.com/?p=1904 $ sudo adduser –encrypt-home username <enter>

where username is the . . . → Read More: Add new user with encrypted home folder in Ubuntu

Lock any OS with Grub

# grub-md5-crypt

Edit grub.conf and add the following password line as shown below.

# vi /boot/grub/grub.conf title Other password –md5 rootnoverify (hd0,0) chainloader +1

Exercise due caution before trying this out. Ensure you backup your system.

Set GRUB password

# grub grub> md5crypt Password: xxxxxxxx grub>

vi /boot/grub/grub.conf Add line: password –md5 :wq

Forgot MySQL password

# su # /etc/init.d/mysql/bin/sqfe_mysqld -user=-mysql –skip-grant-tables –skip-networking& # /usr/local/mysql/bin/mysqladmin -u root flush_privileges password ‘newpassword’ # /etc/init.d/nmysql server restart Now you can use the new root password

Retrieve lost Linux password works with LILO bootloader

LILO: linux single

# passwd

Do note that this is now obsolete. GRUB is the new bootloader. However, this method could still work with devices that use LILO bootloader. These devices can be routers, ADSL routers and more. . . . → Read More: Retrieve lost Linux password works with LILO bootloader

November 2017
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930