Q. How do I reset a user’s password under any Linux distribution from command prompt? A. To reset a user’s password, use passwd command. You have to change it to a different password. Login as the root user Open terminal or shell prompt Type the following command: # passwd username For example, reset a tom’s [...]
Q. How do I create create a new Linux user account ? How do update or modify default Linux new user information? Using the command prompt (shell) tools, how do I add a user to the system? What are command line options for adding a user?
Q. How do I deny or block user login for user id tom? I’m using CentOS 5 Linux server OS. A.. You need to use passwd command. Deny user login by locking out account Pass -l option to passwd command. It is used to lock the specified account and it is available to root only. [...]
Q. How do I change a password under FreeBSD or Linux (UNIX) operating systems? A. The FreeBSD passwd utility changes the user’s local, Kerberos, or NIS password. If the user is not the super-user, passwd first prompts for the current password and will not continue unless the correct password is entered. Choosing a good password [...]
How do I set or change Linux system password for any user account?
Q. I forgot my root password, how can I get into my system? A. You can reset forgotten root password under Linux by booting system into single user mode or emergency mode (also known as rescue mode). My boot loader is GRUB (see LILO boot loader below) )Following is the procedure to reset root password [...]
Q. How do I delete user Password under Linux? I’d like to disable a password for an account. A. All user encrypted passwords are stored in /etc/shadow file. The quick way to remove/delete a user password is pass –delete option to passwd command. First, login in as a root user. Command to delete user password [...]