WRONG: You cannot use -p as the password will be encrypted and no one would now it, it maybe useful for service accounts that are system managed - i like to use this and can save time if have multiple users => for user in alex; do useradd -m -G -s 1234 $user; echo "alex111" | passwd --stdin $user; done
Remember: G to add to grp membership and you can add any other option and if more than one user with i.e. nologin and different passwd then just replace username at start but if all shares same passwd and group membership then saves you time as some questions require that
one more '-' needed;
echo alex111 | passwd --stdin alex
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ogwogwo
1 year, 2 months agosmdrouiss
6 months, 1 week agoRahul95
1 year, 6 months agoktd971
1 year, 10 months agoLazylinux
3 months, 3 weeks agoMayowa15
2 years agoSOAPGUY
2 years, 2 months ago