- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding a new user
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
тАО08-12-2002 12:09 PM
тАО08-12-2002 12:09 PM
Adding a new user
If i edit /etc/passwd file and add user, is that sufficient to add a new user. If yes how do the system knows the new user is created. (I haven't edited the /etc/shadow file)
Is their any command that converts the /etc/passwd info /etc/shadow file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:14 PM
тАО08-12-2002 12:14 PM
Re: Adding a new user
You can fill in your values in this:
/usr/sbin/useradd ???u uid ???g gid ???d dir ???s /usr/bin/ksh ???f 45 ???c ???comment??? ???m login
The shell should be one listed in /etc/shells.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:17 PM
тАО08-12-2002 12:17 PM
Re: Adding a new user
To add new users via commandline, use the 'useradd' command. Good documentation for this can be found in the 11i man pages for 'useradd(1M)'.
You will need to convert to a trusted system to enable the shadow feature. This is easily done via SAM.
For more information, see the "Managing Systems and Workgroups: A Guide for HP-UX System Administrators" manual for more information:
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:23 PM
тАО08-12-2002 12:23 PM
Re: Adding a new user
I am using HP-UX 11..00. It doent have the /etc/shells file.
Hi James
I haven't received answer for my last question.i.e is their any command which converts /etc/passwd info to /etc/shadow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:27 PM
тАО08-12-2002 12:27 PM
Re: Adding a new user
I avoided the mention of 'tsconvert' and pointed you to SAM for the reasons discussed in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xeb33eea29889d611abdb0090277a778c,00.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 12:28 PM
тАО08-12-2002 12:28 PM
Re: Adding a new user
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2002 06:57 PM
тАО08-12-2002 06:57 PM
Re: Adding a new user
Add one dummy user using sam the way you want it and check the samlog for actual command executed by SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2002 03:50 AM
тАО08-14-2002 03:50 AM
Re: Adding a new user
1. create a passwd entry
2. create a home directory
3. modify group file to suit
And, possibly:
4. create a mail file
5. modify aliases file to suit
6. modify mail userdb to suit
Sam is probably the best way to accomplish most of it. Sam will even run a locally written script for you before and/or after creating the user, for local stuff like setting up email, vacation lists, that sort of thing. I have a script that sets up our email client for the user, for example.
But manually at a minimum:
1. vi /etc/passwd (caution on re-using user id's, etc)
2. copy /etc/skel to /home/
3. create a /var/mail/
4. vi /etc/group