- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP UX Secondary 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
05-19-2006 03:39 AM
05-19-2006 03:39 AM
HP UX Secondary Group?
The file generated out from test1 belongs to group1 but test2 account need to access. So i give test2 account group1 as the secondary group. But however test2 is still unable to access. May i know what is the problem? Is this how secondary group works? thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 03:42 AM
05-19-2006 03:42 AM
Re: HP UX Secondary Group?
ln -f /etc/group /etc/logingroup
Then HPUX will use the secondary groups.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 03:44 AM
05-19-2006 03:44 AM
Re: HP UX Secondary Group?
File permissions may look like this:
rwx rw- ---
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 04:07 AM
05-19-2006 04:07 AM
Re: HP UX Secondary Group?
But the problem is the secondary group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 04:50 AM
05-19-2006 04:50 AM
Re: HP UX Secondary Group?
How you added test2 account in group file. Please try the following command :
useradd -G group login
This may help you
- Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 10:03 AM
05-19-2006 10:03 AM
Re: HP UX Secondary Group?
newgrp group1
also
man newgrp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 02:08 PM
05-19-2006 02:08 PM
Re: HP UX Secondary Group?
By the way, what does the secondary group does? thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2006 06:44 AM
05-20-2006 06:44 AM
Re: HP UX Secondary Group?
But just to verify once you are logged in as user2 do a
groups
or if you are logged in as root do
groups user2
or grep group2 /etc/group - to check if entry for test2 appears.
Yes secondary group works exactly as you have thought.
What is the function of secondary group - Basically a particular user may have different roles and hence require different privileges. Hence he can be member of different groups as different permissions may be available by providing them to the additional groups.
I think I have used similar thing and did not require to do a newgrp to be able to get the access/privilege to read the file.
But still if you can see that test2 has been indeed a member of group1, try using newgrp group1 after logging in as user2 and try accesing the file.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2006 11:52 PM
05-21-2006 11:52 PM
Re: HP UX Secondary Group?
test1:x:group1:
test2:x:group2:
Now u want test2 to be in group1: do following thing:
Login as root user,
usermod -G group1 test2
After that check
#su - test2
$cd /home/test1
$
if u able to go ..
There u are..
Cheers
If not .. Get back to me errors.
THX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 01:26 AM
05-22-2006 01:26 AM
Re: HP UX Secondary Group?
have you tested what Rodney said?
Volkmar