Flux rss

Changing password via a script

Published by jak58, last update on Wednesday October 29, 2008 06:44:43 AM by jak58

Changing password via a script




Method 1: passwd


Conventionally the command use to change password on Linux based system is passwd
, the option related to this command is –stdin ,an this is all done throughout a pipe.

echo -e "new_password\nnew_password" | (passwd --stdin $USER)

Method 2: chpasswd


Another alternative is to use the chpasswd, explain as below:

echo "password:name" | chpasswd


Note that the first method can be use to change psssword on Samba based system:
echo -e "new_password\nnew_password" | (smbpasswd -a -s $USER) 
Change admin password Hello, I need to change admin password, but I can not find disk to change password. Is there a way to change without disk? Thank you, Plana en.kioskea.net/forum/affich-29953-change-admin-password
Lost my password Hello,i change password and that last time which pasword i put (newone) that newone password i don't remember but i know only that old password which i had use since long time en.kioskea.net/forum/affich-34587-lost-my-password
How to change or recover your Windows Live Messenger password How to change or recover your Windows Live Messenger password 1.Changing your password (Windows Live Messenger) 2. Password Recovery Secret question Send password reset instructions to your alternative email address Download MSN Messenger... en.kioskea.net/faq/sujet-155-how-to-change-or-recover-your-windows-live-messenger-password
Reinitializing the root password of MySQLReinitializing the root password of MySQL The root password is lost! Reinitializing the password: It’s important that you are able to access and modify the admin (root) password of MYSQL, either when installing MySQL for the first... en.kioskea.net/faq/sujet-630-reinitializing-the-root-password-of-mysql
Securing your wireless networkSecuring your wireless network What is Wi-Fi? Ad-hoc mode Infrastructure mode connection Security and protection What is Wi-Fi? Wi-Fi regroups various IEEE802.11 standards and technologies, using radio waves to provide reliable... en.kioskea.net/faq/sujet-431-securing-your-wireless-network
Connecting to Oracle via phpConnecting to Oracle via php Settings Requirements Example of code Settings Below is an article based on an example of connection to an Oracle database through a php script. However it is not designed to configure your oracle... en.kioskea.net/faq/sujet-887-connecting-to-oracle-via-php
Changing administrator passwordHi, I would like to create some logins on my computer we are at home 4 people using the same Post, Also i would like to change my administrator password to avoid installation of software and access other logins documents and files. Can someone tell me... en.kioskea.net/forum/affich-18512-changing-administrator-password
How to change the passwordHello, i'm trying to change the log in password and enalble mode password at all the routers (CISCO) in our EST including ASA firewall Please help me how can i do it Thanks MRAHMAN en.kioskea.net/forum/affich-25747-how-to-change-the-password
Change boot sequenceHello, wanted to set up a password in the bios but put a wrong one which i cant remember anymore... and now i want to change my boot sequence and i cant do it since i cant access the bios anyone can tell me how i can get directly to the boot sequence?... en.kioskea.net/forum/affich-21100-change-boot-sequence
Download MorphVOX Junior MorphVOX ® Junior a program allowing to change your voice to conceal your. You can take the voice of a strong man, a woman or others. MorphVOX ® Junior was optimized for online games, but also to call your friends via instantaneous freight... en.kioskea.net/telecharger/telecharger-457-morphvox-junior
Download NSISNSIS (Nullsoft Scriptable Install System) is a free system allowing to create installers for Windows. It has been conceived to be the most flexible as possible and allow the sharing of a software via Internet. A sure and effective installer is an... en.kioskea.net/telecharger/telecharger-1738-nsis
Download PCAnalyzerViruses and malwares are numerous to spread via Internet or detachable disks. Their actions can be direct and quick or in delaying. They go to the foundation of registers to change the keys of registers and decelerate the performances of your... en.kioskea.net/telecharger/telecharger-550-pcanalyzer
UNIX system - Commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a detailed listing -R Displays the files recursively (i.e. in the sub-directories) -d Displays only the directories and... en.kioskea.net/unix/unixcomm.php3
Linux - User management When several people have access to a system, the administrator must manage the users. To do so, he must know the common commands and files to be configured. The important files are: the /etc/passwd file the /etc/group file The /etc/passwd file... en.kioskea.net/unix/unix-users.php3
Using Telnet Telnet is a protocol for emulating a remote terminal, which means that it can be used to run commands entered on a keyboard at a remote machine. The tool Telnet is an implementation of the Telnet protocol, which means that it translates the protocol... en.kioskea.net/utile/telnet.php3