HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Useradd fails with /home/common is not a valid dir...
Operating System - HP-UX
1827647
Members
3130
Online
109966
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-12-2001 12:45 PM
03-12-2001 12:45 PM
Useradd fails with /home/common is not a valid directory
I have 200 user accounts with a common directory. When I attemted to create 201, it fails saying the directory does not exist. This is of course not the case. 200 other accounts share the directory with no problem. Is there some limit on the number of user accounts that can share a common directory?
Be Prepared
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2001 12:57 PM
03-12-2001 12:57 PM
Re: Useradd fails with /home/common is not a valid directory
If your going to do something as crazy as this, then it is best NOT to use standard tools to make modifications! My guess (from seeing these setup's before) is that all users share UID# and group. Sorry to assume, but somethings rarely change....
standard tools look at things from the standard perspective.
1. UID must be unique
2. GID must exist
3. user name can not already exist
4. shell must exist
Depending on what your doing the home may or may not be checked for existance.
The only way you can be having 200 users share a home is to have either 777 permissions on the home, and/or more than likely sharing the same UID number.
These things all cause problems!
I.E. User1's shell history being overwritten by User2 because the default history goes into $HOME. Users can delete each others data command line by overriding the not owner error. Display errors and lots of errors from any of the many getuser() functions. Also finger and identd snafu's!
Your best bet is to either write your own script to find unique numbers, and create the ID, or use an editor to manually create them.
Regards,
Shannon
standard tools look at things from the standard perspective.
1. UID must be unique
2. GID must exist
3. user name can not already exist
4. shell must exist
Depending on what your doing the home may or may not be checked for existance.
The only way you can be having 200 users share a home is to have either 777 permissions on the home, and/or more than likely sharing the same UID number.
These things all cause problems!
I.E. User1's shell history being overwritten by User2 because the default history goes into $HOME. Users can delete each others data command line by overriding the not owner error. Display errors and lots of errors from any of the many getuser() functions. Also finger and identd snafu's!
Your best bet is to either write your own script to find unique numbers, and create the ID, or use an editor to manually create them.
Regards,
Shannon
Microsoft. When do you want a virus today?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2001 01:40 PM
03-12-2001 01:40 PM
Re: Useradd fails with /home/common is not a valid directory
Hi Henry:
What is the returnvalue from 'useradd'? The /etc/group file has a line length limitation of (LINE_MAX - 50)/9. On my systems LINE_MAX is 2048 as defined in /usr/include/limits.h Thus, my limit per group would be somewhere around 222. Do you in fact have other accounts belonging to the same group and are thus reaching this limit?
...JRF...
What is the returnvalue from 'useradd'? The /etc/group file has a line length limitation of (LINE_MAX - 50)/9. On my systems LINE_MAX is 2048 as defined in /usr/include/limits.h Thus, my limit per group would be somewhere around 222. Do you in fact have other accounts belonging to the same group and are thus reaching this limit?
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP