How to create password in the script?



I submitted a script to UNIX review a few years back. In the posting I
included a C program that could be used to set passwords for accounts.
These can be viewed at (
http://www.unixreview.com/documents/s=1780/urm0111f/ ).
The C program has been compiled on Solaris 2.5.1 - Solaris 10.

I used this shell script and C program to build student accounts while
teaching the Southern Methodist University's (SMU) Advanced Computer
Education Courses ( ACEC). This script took a file that had a list of
students one per line with their Firstname Lastname or Firstname MI
Lastname. The file was read one line at a time to create unique logins
accounts. A script was created to be viewed by the system administrator
before being run. The resulting script would use mkusers with
appropriate options to create the accounts then call the 'setpass'
program to set each students password.

Feel free to contact me if you have any questions about the script or
the C program.
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: Script help
    ... Network administration is always a ... If these are, in fact, writing lab computers, and students have their files ... shared on a server somewhere on campus, then yes, individual accounts are ... >> need the script, just log on the account and add the printer, followed by ...
    (microsoft.public.windows.server.scripting)
  • Re: Last Logon Time Stamp
    ... > I am new to script. ... > I need to list out inactive accounts more than 90 days in both AD accounts ... Use ADO to retrieve lastLogonTimeStamp for all users. ... And here is a sample program that retrieves the distinguishedName for all ...
    (microsoft.public.windows.server.scripting)
  • Re: Script to delete computer accounts not working
    ... thanks for the initial script as well. ... computer accounts that are disabled and haven't been modified for 30 days. ... Set objCommand = CreateObject ...
    (microsoft.public.scripting.vbscript)
  • Re: Running a script against an OU
    ... Do I need to place a forward slash between Computer and Accounts? ... run the script against an OU called lab1? ... the WinNT provider is blind to OU's, so you must use the LDAP provider to ... bind to the OU. ...
    (microsoft.public.scripting.vbscript)
  • Re: AD Attribute query!
    ... The scripting approach for modifying the CN attribute (using the MoveHere ... GAL will be surname, firstname as well.. ... However the script underneath it, only adjusts the display name, it does ... other accounts were created, it is rather difficult to speculate why ...
    (microsoft.public.windows.server.active_directory)