- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- add mutiple groups to one users
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
07-29-2002 03:18 PM
07-29-2002 03:18 PM
I want to assign one user to multiple groups, such as the user name is zhiyong, groups:root,neuroadmin. I want to get such result:
When I login in as zhiyong, create directory
"/usr4", then I "ls -l", I can see at "/"
directory:
usr4 zhiyong neurouadmin
Would someone please tell me how to do this?
Thanks a lot.
zhiyong
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 03:24 PM
07-29-2002 03:24 PM
Re: add mutiple groups to one users
ln /etc/groups /etc/logingroup
Then you will have access to the groups.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 04:12 PM
07-29-2002 04:12 PM
Re: add mutiple groups to one users
I created zhiyong as members of root and users, users is primary group of zhiyong,but I try to creat a directory in "/", it has error message:
access ".": permission denied.
Would someone tell me how to solve this problem?
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 04:50 PM
07-29-2002 04:50 PM
SolutionTry this:
Your entry in /etc/group should be this, entry added by root:
root::0:root,zhiyong
You need to add this group to your currently used groups as below:
zhiyong@psdev1:/home/zhiyong 367 $ newgrp root
zhiyong@psdev1:/home/zhiyong 365 $ id
uid=342(zhiyong) gid=0(root) groups=30(staff)
zhiyong@psdev1:/home/zhiyong 366 $ mkdir /test
zhiyong@psdev1:/home/zhiyong 367 $ ll -ld /test
drwxr-xr-x 2 zhiyong root 96 Jul 30 10:48 /test
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 05:34 PM
07-29-2002 05:34 PM
Re: add mutiple groups to one users
Thanks a lot.
I solved the problem.
zhiyong