- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/group changing
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
Forums
Discussions
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
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
12-20-2005 05:17 AM
12-20-2005 05:17 AM
/etc/group changing
My /etc/group files is changing... alone... At first, I though I was the one making mistake. But we had a running unix system wich was working very fine, and then , boom.. Acces denied on some files. After checking why, the user was out of the group.. again!
Could it be that some of our admins uses vi to edit the group file, and some of them are using sam? I can't think why this would bothers but...
Anyone ever heard of an incompatibility between vi and sam?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 05:22 AM
12-20-2005 05:22 AM
Re: /etc/group changing
Well, simply using 'vi' to change a file begins by making an in-memory copy of the file. When you finally write the in-memory contents, you overwrite whatever is on disk --- changed or not. There is no locking provided. Running 'vipw' does provide some safeguards for editting '/etc/passwd' but that variation of the command is specifically for that file.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 05:25 AM
12-20-2005 05:25 AM
Re: /etc/group changing
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 05:40 AM
12-20-2005 05:40 AM
Re: /etc/group changing
Or if there are a large amount of users just grep out"group" to get an idea who may be changing it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 06:07 AM
12-20-2005 06:07 AM
Re: /etc/group changing
Like the example i just tested
_____________-
[root /etc/] id chiami
uid=203(chiami) gid=103(dti) groups=4(adm),112(eti),117(pea)
[root /etc/] usermod -G chiami nic
[root /etc/] id chiami
uid=203(chiami) gid=103(dti) groups=117(pea)
___________
It removed all my other groups. Is this normal behavior?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2005 06:19 AM
12-20-2005 06:19 AM
Re: /etc/group changing
Jeff Traigle