pipe password to passwd


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers pipe password to passwd
# 1  
Old 03-28-2001
Is there a way that I can pipe text to passwd...


This is what I am trying to accomplish
e.g. passwd [user] < cat password.txt

# 2  
Old 03-28-2001
I don't think passwd uses standard-in; so my best guess is no, you can't pipe or redirect in. You may use command line examples likke: xargs or find -exec passwd {} \; and similar command line forms.
# 3  
Old 03-29-2001
or use expect

# 4  
Old 03-30-2001
Data

But Mib, te url you mention, just having source of tcl and expect, and configuration ask us to compile it using C.
It's pity, in my RS6000/AIX no C installed, only java.
# 5  
Old 03-30-2001
it is time to visit http://www.gnu.org/software/gcc





 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using value from pipe as password

how can this be modified to work: echo 1 2 45 4 5 | openssl aes-128-cbc -a -salt -k $(awk '{print $3}') any ideas? if the above were to work as I envision it, the password that would decrypt the encrypted text would be: echo "the encrypted text" | openssl aes-128-cbc -a -salt -k 45 (0 Replies)
Discussion started by: SkySmart
0 Replies

2. Solaris

Pipe Actual Password to passwd

Hello, I have a problem. As ldap admin, i have a account with a stored password in passwd (means local). This password must be changed every 30 days. Now i want execute "passwd" without prompt for the actual password. I will only typie in the new password. On Ubuntu i solve this with the... (2 Replies)
Discussion started by: fraenker
2 Replies

3. SuSE

SUSE "passwd username" ask for password 4 times

Below is the error I'm getting. # passwd username Changing password for username. New Password: Reenter New Password: Password changed. New UNIX password: Retype new UNIX password: Password has been already used. Choose another. passwd: Authentication token manipulation error# cat... (0 Replies)
Discussion started by: toor13
0 Replies

4. HP-UX

Sudo entry required to set permission similar to ROOT without using password (PASSWD) change optio

Hi All I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies

5. Shell Programming and Scripting

How to ignore Pipe in Pipe delimited file?

Hi guys, I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file for eg: file 1: xx|yy|"xyz|zzz"|zzz|12... using below awk command awk 'BEGIN {FS=OFS="|" } print $3 i would get xyz But i want as : xyz|zzz to consider as whole column... (13 Replies)
Discussion started by: rohit_shinez
13 Replies

6. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

7. HP-UX

Port/migrate Password passwd HP-UX to HP-UX

Hi, I know this has been covered many times on this forum from one os to a new os. Has Port/migrate Password passwd HP-UX to HP-UX been covered? B.11.11 U 9000/800 --to-- B.11.11 U 9000/785? TIA. I'm kinda new to HP side of UNIX. I need to sink up my test and live passwords for a big... (1 Reply)
Discussion started by: KmJohnson
1 Replies

8. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. UNIX for Dummies Questions & Answers

How to : Identify the the password is encrypted or not in /etc/shadow or /etc/passwd?

Thanks AVKlinux (11 Replies)
Discussion started by: avklinux
11 Replies

10. AIX

new password not available on nis client for up to 10 minutes after yppush passwd

Hi, We are currently in the process to move the user authentication for our AIX clients to a Windows 2003 server to authenticate them against the active directory entries. What we have so far: - NIS master server on Windows 2003 Server with the unix-subsystem installed -> This is managing... (1 Reply)
Discussion started by: candyflip2000
1 Replies
Login or Register to Ask a Question