- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- useradd returns not a valid directory
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
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
тАО10-31-2005 03:57 AM
тАО10-31-2005 03:57 AM
useradd returns not a valid directory
I am trying to add number of users to a few of my servers via a script. This script has worked in the past with other home directories but I get the following error when I run the attached command: "'/home/app/' is not a valid directory"
useradd -d /home/app/ -u 511 -c Amy_Whipple -s /usr/bin/ksh -g epic -G epicgrp ahiwpple
This directory has been in production use for 4 years and current users have no problem using it today.
Any thoughts?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2005 04:32 AM
тАО10-31-2005 04:32 AM
Re: useradd returns not a valid directory
useradd -d /home/app/ahiwpple -u 511 -c etc. etc.
I would type the command like this:
useradd -g epic -d /home/app/ahiwpple -m -s /usr/bin/ksh -G epicgrp -c "Amy Whipple" ahiwpple
I am assumeing that the ahipple is a typo and it should actuall be ahwipple.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2005 04:37 AM
тАО10-31-2005 04:37 AM
Re: useradd returns not a valid directory
If worse comes to worst, can you create a user with the default homedir, i.e., /home/awhipple and edit the passwd file with 'vipw' command and replace the value of homedir and user can still work ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2005 04:59 AM
тАО10-31-2005 04:59 AM
Re: useradd returns not a valid directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2005 05:13 AM
тАО10-31-2005 05:13 AM
Re: useradd returns not a valid directory
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
тАО10-31-2005 06:18 AM
тАО10-31-2005 06:18 AM