- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't edit group file: lines too long
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
тАО11-08-2000 10:25 AM
тАО11-08-2000 10:25 AM
INTERNAL ERROR: VREDRAW
:
All commands are unsuccessful to get me out of that mode.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 10:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 10:58 AM
тАО11-08-2000 10:58 AM
Re: Can't edit group file: lines too long
...Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 11:05 AM
тАО11-08-2000 11:05 AM
Re: Can't edit group file: lines too long
I used:
rcp -r -p
Then vi'ed /etc/group.bak to remove the info I didn't want and ammended it to /etc/group using:
cat /etc/group.bak >> /etc/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 11:26 AM
тАО11-08-2000 11:26 AM
Re: Can't edit group file: lines too long
Try fixing your /etc/group file with the 'fold' filter (see man pages) to format the file into records that 'vi' can then handle and repair.
From the man pages, The length of each line in /etc/group is limited to LINE_MAX, as defined in
If you have a large number of users per group, split them into multiple lines by repeating the group, like:
users::20:tom,dick,harry....
users::20:able,baker,charlie....
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 12:32 PM
тАО11-08-2000 12:32 PM
Re: Can't edit group file: lines too long
Since the default user group is groupID=20 and known as users, then the only information needed about users is:
users::20:
As mentioned in a previous note, if a large number of users are members of another group, you can repeat the group line as many times as needed.
As always, use the grpck command to verify the validity of /etc/.
Bill Hassell, sysadmin