- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/group
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
Forums
Discussions
Discussions
Discussions
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
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
06-12-2008 11:27 PM
06-12-2008 11:27 PM
/etc/group
In /etc/group, there is a group ID named "guest", what is it for? Can I delete this group ID? Does it have any impact to the system if I deleted this group ID?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2008 11:47 PM
06-12-2008 11:47 PM
Re: /etc/group
Check also for files with group ownership guest.
Bu default there is no such group in HP-UX.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2008 11:49 PM
06-12-2008 11:49 PM
Re: /etc/group
The answer is, it depends.
If you delete the group and its in use you may cause problems.
What it depends on is how the group is used.
This group name is itself a red flag and guest users should be discouraged. You need to find out how the user is used and then do a complete delete once you understand the implications, the group id, the users in /etc/passwd, all things associated.
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
06-13-2008 12:19 AM
06-13-2008 12:19 AM
Re: /etc/group
find / -group gname
To find those users:
awk -F: -v grp=$(awk -F: '/guest/ {print $3}' /etc/group) \
'$4 == grp {print}' /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2008 12:23 AM
06-13-2008 12:23 AM
Re: /etc/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2008 04:53 AM
06-14-2008 04:53 AM
Re: /etc/group
As told, there is no default group called guest in HP-UX. If this group exists in your system, before you remove it, what you have to do is to search all the files belong to that group
find / -group guest -exec ll {} +
The above command will list all the files belong to the guest group, if exist
then
grep guest /etc/group
(you will get the numerical group ID)
i.e, if the groupd id is 106, just grep the passwd file to see who are the users belong to this particular group
awk -F: ' $4 == 106 {print }' /etc/passwd
Based on the results, you can decide what to do - remove the group or keep it.