This is a discussion on HP UX create or add users from command line using useradd within the HP-UX forums, part of the UNIX operating systems category; My last post was about adding users from SAM GUI tool. This is about adding a user from command line ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
||||
|
My last post was about adding users from SAM GUI tool. This is about adding a user from command line tool useradd.
Create / add a user call rocky with home directory Code:
useradd -m rocky Code:
passwd rocky Add user john to secondary group called accounting Code:
useradd -G accounting -m john passwd john => Add a user called guestuser as per following requirements => Primary group member of guests => Secondary group member of www and accounting => Shell must be /usr/bin/bash3 => Home directory must be /home/guestuser Code:
useradd -g guests -G www,accounting -d /home/guests -s /home/guestuser/ -m guestuser passwd guestuser Code:
man useradd man passwd
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HPUX Unix comparing 2 large files line by line | raj | HP-UX | 1 | 02-11-2008 05:20 PM |
| How do I configure the network card from the command line? | jerry | Linux software | 4 | 09-17-2007 03:52 PM |
| Command line remote access | angelus_kit | Networking, Firewalls and Security | 7 | 09-05-2007 06:30 PM |
| Create new user account in Ubuntu Linux from command line | sweta | Getting started tutorials | 0 | 06-21-2007 01:49 AM |
| how to create multiple file in a single command | selvam | Shell scripting | 3 | 07-26-2006 01:01 AM |