02-24-2017
Can someone please show me a very simple "expect" script to change password in Solaris please?
Ladies & Gents,
Can one of you gurus please show me a very simple "expect" script to change the password in Solaris in a script, please? Nothing fancy, no error checking, no nothing. Just to change the password of a new user, it's all.
Many thanks in advance. U guys have honestly earned my respect. I hope to seen be able to also contribute to this wonderful community. I need to work harder and improve my skill set first.
10 More Discussions You Might Find Interesting
1. Solaris
Hello everyone.
I beg your guys pardon please.
I try to ls -al in many path/directories. So, I put the code in text file which look like below;
ls -al /
ls -al /etc
ls -al /etc/default
...
however, when I paste it to Solaris over SecureCRT, it seems the code was escaped from "-" to... (0 Replies)
Discussion started by: Smith
0 Replies
2. Shell Programming and Scripting
Hey, I'm running the following script:
#!/bin/bash
kjv=kjv.txt
trim(){
local trim_string
local _TRIM=$1
trim_string=${_TRIM##*}
_TRIM=${_TRIM#"trim_string"}
echo $_TRIM
}
#trim() {
# echo $( _trim "$@" )
#}
printf "How many chapters? "
read response (10 Replies)
Discussion started by: pkohn11
10 Replies
3. UNIX for Advanced & Expert Users
I want to customize the "change password" through unix shell. when a user's password is expired and he/she logs into shell next time he/she will be asked to change his/her password. At this time when the user provides new password instead of unix doing the "password change" action I want to call my... (4 Replies)
Discussion started by: sharmanikhilesh
4 Replies
4. Shell Programming and Scripting
I'm trying to execute something like this:
exec perl -i -pe 's/\015/\012/g' '${file}'
in my expect script and I get:
error "invalid command name \"perl\".
however, if I run
perl -i -pe 's/\015/\012/g' "/Users/Shared/menu-items.txt"
directly in my terminal, it runs fine. I'm an... (4 Replies)
Discussion started by: dpouliot
4 Replies
5. Shell Programming and Scripting
Hi
I'm trying to run a script " abc.sh" which triggers "use.sh" .
abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script.
Please find below the scripts:
#abc.sh
#!/usr/bin/expect -f
exec /root/use.sh
expect "*name*"
send... (1 Reply)
Discussion started by: baddykam
1 Replies
6. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
7. AIX
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (2 Replies)
Discussion started by: thisissouvik
2 Replies
8. Shell Programming and Scripting
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (14 Replies)
Discussion started by: thisissouvik
14 Replies
9. Shell Programming and Scripting
Hi All,
i am trying to ssh to a remote machine and execute certain command to remote machine through script.
i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as
expect: spawn id exp5 not open
while executing
"expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT CENTOS
pwscore
PWSCORE(1) General Commands Manual PWSCORE(1)
NAME
pwscore - simple configurable tool for checking quality of a password
SYNOPSIS
pwscore [user]
DESCRIPTION
pwscore is a simple tool for checking quality of a password. The password is read from stdin.
The tool uses the libpwquality library to perform configurable checks for minimum length, dictionary checking against cracklib dictionar-
ies, and other checks.
It either reports an error if the password fails any of the checks, or it prints out the password quality score as an integer value between
0 and 100.
The password quality score is relative to the minlen setting in the configuration file. But in general values below 50 can be treated as
moderate quality and above it fairly strong quality. Any password that passes the quality checks (especially the mandatory cracklib check)
should withstand dictionary attacks and scores above 50 with the default minlen setting even fast brute force attacks.
OPTIONS
The first and only optional argument is the user name that is used to check the similarity of the password to the username.
FILES
/etc/security/pwquality.conf - The configuration file for the libpwquality library.
RETURN CODES
pwscore returns 0 on success, non zero on error.
SEE ALSO
pwscore(1), pwquality.conf(5), pam_pwquality(8)
AUTHORS
Tomas Mraz <tmraz@redhat.com>
Red Hat, Inc. 10 Nov 2011 PWSCORE(1)