- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- no leading numbers with groupadd ?
Operating System - HP-UX
1819871
Members
2609
Online
109607
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
Discussions
Discussions
Discussions
Forums
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
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-28-2006 03:21 AM
тАО03-28-2006 03:21 AM
no leading numbers with groupadd ?
hp-ux 11.23 on Itanium2
Hello,
I want to create a group with a leading number e.g. 123test
If I add this group to /etc/group by editing this file then 123test seems to work on the system . The group exists, I can newgrp to it, I can create files and the have 123test as their group. It works with samba etc.
However, if I try to create a leading number group with groupadd, I get this error...
# groupadd 34getrid"
Invalid name specified: '34getrid'
I can get round this by manually editing the group file - a bit of a pain because I have scripts that use groupadd - , but is there a reason why groupadd won't allow leading numbers. Might I be creating problems down the line by creating these groups ?
Hello,
I want to create a group with a leading number e.g. 123test
If I add this group to /etc/group by editing this file then 123test seems to work on the system . The group exists, I can newgrp to it, I can create files and the have 123test as their group. It works with samba etc.
However, if I try to create a leading number group with groupadd, I get this error...
# groupadd 34getrid"
Invalid name specified: '34getrid'
I can get round this by manually editing the group file - a bit of a pain because I have scripts that use groupadd - , but is there a reason why groupadd won't allow leading numbers. Might I be creating problems down the line by creating these groups ?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 04:09 AM
тАО03-28-2006 04:09 AM
Re: no leading numbers with groupadd ?
Had a similar situation with the passwd file as well. Would not allow numerics as the 1st character.
We used the automated script that called the useradd command but the initial account name had an alpha character to start (x1234). Once account was added, use sed to edit the passwd file and remove the leading 'x' from the account name
We used the automated script that called the useradd command but the initial account name had an alpha character to start (x1234). Once account was added, use sed to edit the passwd file and remove the leading 'x' from the account name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 04:41 AM
тАО03-28-2006 04:41 AM
Re: no leading numbers with groupadd ?
Unlike the login name in the passwd file which must begin with an alpha character (man 4 passwd) there are no such requirements for the composition of the group name. You may have problems with SAM commands which might expect group names to begin with a letter but there is no hard UNIX reason for this.
If it ain't broke, I can fix that.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP