- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: A home directory question
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
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
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-04-2009 12:21 AM
тАО09-04-2009 12:21 AM
A home directory question
'useradd -g dba -d /home/oracle oracle'.
but why there is no /home/oracle directory created.
then I just 'mkdir -p /home/oracle' and useradd -g dba -d /home/oracle, but nothing under /home/oracle, not even the .profile..
I'm new about HPUX, I remembered there would be directory with the same name of the user under /home when a user is created under Linux.
So, could someone tell me why, are there any ways to change this?
thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 12:46 AM
тАО09-04-2009 12:46 AM
Re: A home directory question
#useradd -g dba -d /home/oracle -m oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 12:47 AM - last edited on тАО06-28-2021 10:25 PM by Ramya_Heera
тАО09-04-2009 12:47 AM - last edited on тАО06-28-2021 10:25 PM by Ramya_Heera
Re: A home directory question
As I say several times a day on this site, HP-UX is *not* Linux - do not ass-u-me it will behave the same way.
Reading the man page for useradd would help...
-m Creates the home directory for the new login if it
does not exist. If the home directory exists, the
directory must have read and run permission by
group, where group is the primary group of the new
login. The -m option must be used to create a
home directory.
so maybe:
useradd -g dba -m oracle
will work???
HTH
Duncan
I am an HPE Employee