- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Batch script for useradds
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 12:49 PM
09-01-2003 12:49 PM
Is there a simple way to add appr. 1500 users by use of a script? I found out that using the passwd command is not usable in a script because it keeps prompting. Are the ways to deal with this?
Thanks for any reply!
Grz. Johan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:00 PM
09-01-2003 01:00 PM
Re: Batch script for useradds
I've got one at work, but I'm not there so this will have to suffice.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x72bcd06ed8c8d4118fef0090279cd0f9,00.html
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:12 PM
09-01-2003 01:12 PM
Re: Batch script for useradds
But in the threat i miss the most important problem: setting a password via the script in bulk mode. Do you have the in your script at the office?
Grz. Johan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 03:59 PM
09-01-2003 03:59 PM
SolutionBill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 03:13 AM
09-02-2003 03:13 AM
Re: Batch script for useradds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 03:14 AM
09-02-2003 03:14 AM
Re: Batch script for useradds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 03:19 AM
09-02-2003 03:19 AM
Re: Batch script for useradds
passwd -d -f
This deletes the current password (in the case of the new ID, this will be the * for a locked account), and forces the user to select a new password when they next log in.
If you want to add password expiry, you can use
passwd -d -f -x 28
which will do the above, and will also make the user change their password every 28 days (28 is only used as an example - this can be extended to whatever your security policy dictates).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 01:36 PM
09-02-2003 01:36 PM
Re: Batch script for useradds
Especially Bill and Chris: that where the solutions i was looking for!
Grz. johan