- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create an 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
Forums
Discussions
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
06-28-2008 03:38 AM
06-28-2008 03:38 AM
.................................
* Required Field
*Login Name : kak________________
User ID : (X) Next Available ID
( ) Specify ID
Primary Group : users______________
[ Change Primary Group ]
Home Directory : /DT03______________
(default : /home/{login-name})
Create Home Directory : Yes ->
Start-Up Program Options : (X) Select Start-Up Program
( ) Specify Start-Up Program
Start-Up Program : /sbin/sh ->
Comments : ___________________
(Real Name, Location, Phone, Home Phone)
See the error message below
'/DT03' is not a valid directory
Command Unsuccessful
press enter Key to continue
however i already created some users in this directory.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 03:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 04:02 AM
06-28-2008 04:02 AM
Re: create an user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 04:20 AM
06-28-2008 04:20 AM
Re: create an user
man useradd
Look for the -r option
By default, useradd will not recursively update the ownership of the home directory for the new user if the directory exists and is not a shared home directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 04:37 AM
06-28-2008 04:37 AM
Re: create an user
-r update_homedir_ownership
By default, useradd will not recursively update
the ownership of the home directory for the new
user if the directory exists and is not a shared
home directory. This behavior of useradd can be
changed using the -r [yes|no] option. When used
with the -D option, the -r option will set the
default behavior. The update_homedir_ownership
argument is either yes or no:
yes useradd will recursively update the
ownership of the home directory and the
files/directories below it to the new user,
if the directory already exists and is not a
shared home directory.
no useradd will not update the ownership of the
home directory and the files/directories
below it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 09:52 AM
06-28-2008 09:52 AM
Re: create an user
you didn't give same home directory to another user.but you can do an alternative like, you can create different directory as like as user, more likely
/DT03/x
/DT03/y
/DT03/z
.............
etc..........
and this way you didn't face any problem at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 10:04 AM
06-28-2008 10:04 AM
Re: create an user
useadd -m -d /home/kacau kacau
passwd kacau (for passwd)
do like this it will create kacau user with home directory /home/kacau same way u can do what ever u want
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2008 11:44 PM
06-28-2008 11:44 PM
Re: create an user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2008 02:01 AM
06-30-2008 02:01 AM
Re: create an user
i use the command below:
# useradd -m -i -d /DT03 kak