- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Default group ownership
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
04-26-2007 03:46 AM
04-26-2007 03:46 AM
Greetings,
For a specific user, I want the default group ownership setting to be 'qms', not 'users'. When I create a file, it defaults to 'users', how can I change that?
# whoami
chlee
#
# groups chlee
qms qms_int users
#
# groups
users qms qms_int
#
# touch a
# ll a
-rw-rw-rw- 1 chlee users 0 Apr 26 11:39 a
#
# grep qms /etc/passwd
qms:1104:202:QMS User:/apps/qms:/sbin/sh
#
# grep qms /etc/group
qms::202:chlee
#
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 03:51 AM
04-26-2007 03:51 AM
SolutionUser was logged in and you changed it's group from users to qms. If the user doesn't logoff and login again, the system will retain the old group for that login session.
or
The directory where you are touching the file has the setGID bit set and has group ownership of users. Any files created by any user in the directory would get users group ownership instead of group ownership of the individual user account.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:03 AM
04-26-2007 04:03 AM
Re: Default group ownership
I have also seen this behavior where the cached entries stored by the pwgrd daemon were stale. I would stop the pwgrd daemon (and don't restart it for now) and see if the behavior persists after a fresh login of user chlee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:18 AM
04-26-2007 04:18 AM
Re: Default group ownership
If you are talking about chlee user
can you do
grep chlee /etc/passwd
(look for the group id in /etc/passwd for chlee - that is the default as far as I remember)
id -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:18 AM
04-26-2007 04:18 AM
Re: Default group ownership
# ll -d chlee
drwxrwxr-x 15 chlee qms 8192 Apr 26 11:39 chlee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:19 AM
04-26-2007 04:19 AM
Re: Default group ownership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 04:22 AM
04-26-2007 04:22 AM
Re: Default group ownership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 06:40 AM
04-26-2007 06:40 AM
Re: Default group ownership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 08:30 AM
04-26-2007 08:30 AM
Re: Default group ownership
can we exclude, that NIS, ... is used as authentication method and not plain file authentication?
Give us
grep passwd /etc/nsswitch.conf
grep group /etc/nsswitch.conf
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 10:09 AM
04-26-2007 10:09 AM
Re: Default group ownership
# grep passwd /etc/nsswitch.conf
passwd: files
#
# grep group /etc/nsswitch.conf
group: files
netgroup: files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 10:17 AM
04-26-2007 10:17 AM
Re: Default group ownership
After fixing the /etc/group file and making sure the /etc/passwd file is correct, create a new user with the primary group qms.
See if it works and new files are created correctly.
If this is the case whats happened with this problem user is a result of what happened before you made changes not after.
If the system is or was ever trusted, there may be some default user policy set up. I don't remember where that might be, but sam an be used to check it.
This issue, if the new user works is likely a historical issue with the way the system WAS configured and is no longer configured. The guesses are in the posts above.
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
04-27-2007 01:26 AM
04-27-2007 01:26 AM
Re: Default group ownership
from your comman 'groups' -> 'users qms qms_int', it seems like 'users' is still recognized as the first group.
If you delete 'chlee' from group 'users', is it working now?
Then after reassigning to group 'users', what's showing now?
Volkmar