- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- emergency help: should I use setuid in this situat...
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-26-2004 03:04 AM
05-26-2004 03:04 AM
emergency help: should I use setuid in this situation or something else
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:09 AM
05-26-2004 03:09 AM
Re: emergency help: should I use setuid in this situation or something else
If user john needs to read the xyz.* files, add him to the users group. Just keep in mind that at that point he has access to anything with a group of users and the appropriate permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:09 AM
05-26-2004 03:09 AM
Re: emergency help: should I use setuid in this situation or something else
This will allow john to have access to files/directories that are part of the "users" group, and john remains part of the grp-a group.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:10 AM
05-26-2004 03:10 AM
Re: emergency help: should I use setuid in this situation or something else
Use chmod in that dir as follows:
chmod 664 *
this will set -rw-rw-r-- & give read rights to others.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:12 AM
05-26-2004 03:12 AM
Re: emergency help: should I use setuid in this situation or something else
SUDO can help you here as you can configure it such that "John" can see the files under "dirname" as "david". But be cautious while configuring sudoers as you may inadvertantly open-up security holes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 04:00 AM
05-26-2004 04:00 AM
Re: emergency help: should I use setuid in this situation or something else
Can you please explore it a little bit more for me?
all these xyz.* file has permission of 660, and grouped by users, but "john" is not part of that group. I did chmod 2775 on "dirname" which contains all these xyz.* files, but john still can not read these files.
BAsed other postings, I can't achieve what I want by setting setgid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 04:12 AM
05-26-2004 04:12 AM
Re: emergency help: should I use setuid in this situation or something else
As I said in my first reply the SETGID bit has ABSOLUTELY NOTHING to do with being able to read a file. SETUID and SETGID are ONLY applicable to executable files. Setting the SETGID bit will NOT help you in this case.
You must either add john to the users group, or change the permissions of the xyz.* files to be world readable.
# chmod o+r xyz.*
or
# chmod 664 xyz.*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 04:16 AM
05-26-2004 04:16 AM
Re: emergency help: should I use setuid in this situation or something else
Once done change the file permissions to 664 so that "Mr. john "can read it
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 04:19 AM
05-26-2004 04:19 AM
Re: emergency help: should I use setuid in this situation or something else
Simple and URGENT way to do it is to add the JOHN to USERS group.
Take care of John getting exposed to USERS group.
That's it.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 04:24 AM
05-26-2004 04:24 AM
Re: emergency help: should I use setuid in this situation or something else
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 05:09 AM
05-26-2004 05:09 AM
Re: emergency help: should I use setuid in this situation or something else
If he only needs access to that one directory of files, and not all files that belong to group "grp-a" then, just change the permissions on the files so they are world readable. (as stated above)