- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: should I use setgid in this situation, or some...
Operating System - Linux
1748246
Members
3214
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-26-2004 03:03 AM
тАО05-26-2004 03:03 AM
should I use setgid in this situation, or something else?
I have a number of files "xyz.1", xyz.2",... under the directory "dirname"
cd dirname(with permission of 775)
ls -l
-rw-rw---- david users xyz.1
-rw-rw---- david users xyz.2
...
now, I have another id called "john", and he belongs to group "grp-a", and "john" want to be able to read all these xyz.* files. What I should do to achive this?
I did chmod 2775 on dirname, but "john" still can't read all these xyz.* file.
Can 2775 to achive what I want, and what is the correct method to achive what I want.
Thanks,
cd dirname(with permission of 775)
ls -l
-rw-rw---- david users xyz.1
-rw-rw---- david users xyz.2
...
now, I have another id called "john", and he belongs to group "grp-a", and "john" want to be able to read all these xyz.* files. What I should do to achive this?
I did chmod 2775 on dirname, but "john" still can't read all these xyz.* file.
Can 2775 to achive what I want, and what is the correct method to achive what I want.
Thanks,
none
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2004 03:25 AM
тАО05-26-2004 03:25 AM
Re: should I use setgid in this situation, or something else?
L.S.
setgid is NOT what you want. Setgid is used for programs, such that if you execute the program your group is changed to that of the programfile.
Easiest solutions:
Add john to the users group?
Make the files world-readable (-rw-rw-r--)?
JP
setgid is NOT what you want. Setgid is used for programs, such that if you execute the program your group is changed to that of the programfile.
Easiest solutions:
Add john to the users group?
Make the files world-readable (-rw-rw-r--)?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2004 04:52 AM
тАО05-26-2004 04:52 AM
Re: should I use setgid in this situation, or something else?
Actually, if you add "john" to group users you won't need world readable permission on the files. Remember a user can be in more than one group. Have a look at /etc/group
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2004 06:03 AM
тАО05-26-2004 06:03 AM
Re: should I use setgid in this situation, or something else?
Hanry,
Check this thread in the HP-UX forumr ???
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=603007
Now you have 2 competing threads and I feel like loosing time answering this one... :-)
JP
Check this thread in the HP-UX forumr ???
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=603007
Now you have 2 competing threads and I feel like loosing time answering this one... :-)
JP
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP