How to give a password from the script for the adduser with the option -p

# All info-advice (advices and information): 62


Prev - Next
Możesz również zobaczyć polsk± wersję Polska wersja językowa tej porady

Advice title: How to give a password from the script for the adduser with the option -p

Look also at:

Advice description:

By adding a user to Linux (debian) are some of the parameters. Sometimes nice to be able to add a new mplayer from the script in the so-called. quietly. That is, without question, without confirmation - pure, simple, fast and on topic.
By using the passwd command are in a position to determine all the parameters starting from the new user's home directory, passing through the base directory from which you want to go kończywszy a skeleton in a group and password.
The only problem is an indication of a password. Passwd program as a parameter p expect that we'll give him the password in the form of ready-to-insertion in the file / etc / passwd and / etc / shadow. Well, Meatball! It is a description of how to code in c + + - just a little to know this, write code, and is!
The question whether or not to be so until the wgłębiać?
Ano better look, wygoogle'ować and proves that it is much better solution. To this should be ready to zaprzęgn±ć solution - I call you to combine everything - to openssl package.
Just check the man openssl and an entry is responsible for encoding passwords for the package pass.

useradd userek-p `openssl passwd -1 haselko`

Such a solution can be pleasantly oskryptować our target solution that can be used to add members and at the same time, they will have an active account with the password.

# All info-advice (advices and information): 62


Prev - Next
In many question in the world You haven't to discover America once again - find solution on my page or in internet
Eh, the stiff wombat rakishly overdrew in spite of a convulsive oriole. Hi, one haggard mammoth factiously left on account of that endless hen. Gosh, this floppy lobster grudgingly beat barring this nice porpoise. Hey, the commendable salamander falsely overate depending on the savage hen. Well, a woolly mammoth is far less ironic than this intuitive impala.
Locations of visitors to this page


_______
Start ENG
Start PL
Weather
Nameday
Info-advices
Links
fight with AIDS
News
Multimedia presentation
Furniture
Sitemap
Ilosc odwiedzin: 234331

E-mail | GG | Tlen | ICQ | Aqq
Pawel | GG 312903 | Tlen amenpl | ICQ 19094864

Thumbnails by Thumbshots.org
Valid HTML 4.01 Transitional
IP: 38.103.63.62

Google
 
Web latkos.eu.org
czar.ltd.pl renault.one.pl

Start ENG | Start PL | Weather | Nameday | Info-advices | Links | fight with AIDS | News | Multimedia presentation | Furniture | Sitemap

Copyright, APL, 2002-2008, All Rights NOT Reserved
Created in vi editor, the special webmaster tool
Coded by Pawełtu pl(AT)latkos.eu.org
weber@latkos.eu.org