- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding users non-interactively?
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
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
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
тАО02-02-2006 02:22 AM
тАО02-02-2006 02:22 AM
Adding users non-interactively?
How do I add users non-interactively?
The password command doesn't seem to give that option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 02:26 AM
тАО02-02-2006 02:26 AM
Re: Adding users non-interactively?
See the man pages for 'useradd':
http://docs.hp.com/en/B2355-60127/useradd.1M.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 02:46 AM
тАО02-02-2006 02:46 AM
Re: Adding users non-interactively?
Snip
----
useradd(1M) useradd(1M)
NAME
useradd - add a new user login to the system
SYNOPSIS
useradd [-u uid [-o] ] [-g group] [-G group [, group...]] [-d dir]
[-s shell] [-c comment] [-m [-k skel_dir]] [-f inactive]
[-e expire] [-r update_homedir_ownership] login
useradd -D [-g group] [-b base_dir] [-f inactive] [-e expire]
[-r update_homedir_ownership]
DESCRIPTION
The useradd command creates a user login on the system by adding the
appropriate entry to the /etc/passwd file and any security files,
modifying the /etc/group file as necessary, creating a home directory,
and copying the appropriate default files into the home directory
depending on the command line options. The new login remains locked
until the passwd (see passwd(1)) command is invoked.
-----
Example
useradd schmo -G bagel
You can create a user template in /etc/skel that would be able to handle all customizations that your users require.
The passwd command is for password changes, and reports on user password status (passwd -sa)
A releated and possibly useful thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=478688
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
тАО02-02-2006 03:17 AM
тАО02-02-2006 03:17 AM
Re: Adding users non-interactively?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 10:09 AM
тАО02-02-2006 10:09 AM
Re: Adding users non-interactively?
I don't know exactly what your asking.
First you asked how to add users to a system without using sam i gues. But the question is to give a password directly with useradd.
This is not possible you need to give to commands for this. 1 useradd, second passwd.
You can change some security settings with /usr/lbin/modprpw but that is not one of them.
p.s try to do something about your poor score.
I have assigned points to 20 of 135 responses to my questions.
it's nice to give some reward to the people who are helping you.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 02:27 PM
тАО02-02-2006 02:27 PM
Re: Adding users non-interactively?
Hi,
You can create the user non interactively using #useradd command,
bt after this you have to use #passwd
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 05:53 PM
тАО02-02-2006 05:53 PM
Re: Adding users non-interactively?
You can create users and force the user to set password during first login with passwd utility but not assigning passwd with command itself.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 07:13 PM
тАО02-02-2006 07:13 PM
Re: Adding users non-interactively?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=981127
--
Muthu