Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Using passwd in a script
Name: Franco Date: July 11, 2003 at 11:45:17 Pacific OS: Solaris 8 CPU/Ram: E450/2gb
Comment:
Using passwd, I want to be able to change a users password from a script file without keyboard input. I have searched this site and found some different scripts but none work for Solaris 8. It seems that the passwd program will only accept keyboard input.
Does anyone know of a way to do this or an alternate passwd for Solaris?
Summary: I'm just learning perl and I have a question. Can I use awk in a perl script? I tried this @s_users=`/usr/bin/last | head |awk {'print $1'}"` ; but it didn't work. The result is just the commans las...
Summary: get the script in current dir, and use ./<script>. or make the current dir in your path *not recomended because of security problems with root, never use "."in your PATH when you are a root, you ma...