- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Grant user's right
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
Discussions
Discussions
Forums
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
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
тАО09-13-2006 05:28 AM
тАО09-13-2006 05:28 AM
The file permission is set to rw,rw,r -- How do I give a specific user "John" permission to run a process without world's permission? As root I can do chmod 666 or 777 to a file, but I would like this user to be able to run a process to process this file without having to run chmod prior to.
Please help!!
Thank you in advance.
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 05:29 AM
тАО09-13-2006 05:29 AM
Re: Grant user's right
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 06:17 AM
тАО09-13-2006 06:17 AM
Re: Grant user's right
There are many ways to accomplish this:
1) Create a wrapper script to execute 'sudo -u owner file', or teach John the syntax. Make sure john is set up in sudoers.
2) Create a new group and make john a member. Then 'chgrp newgroup file && chmod g+x file'.
3) Create a wrapper script that checks for john's uid and executes 'file' in the event of a match. Make sure to 'setuid' or 'setgid' for the script appropriately.
4) Use an ACL. RHEL 3.0 has ACL support for ext3 built into the kernel. To enable ACLs for a filesystem, use the '-o acl' option to 'mount'. Then:
# setfacl -m u:john:rwx file
Of course, if this is the only instance you'll use ACLs on the filesystem, it's overkill.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 03:51 PM
тАО09-13-2006 03:51 PM
Re: Grant user's right
I'd like to say thanks for all your suggestions. However, I'm still learning Linux, therefore, I would need more details such as the command to add seudo user account, etc.
Thanks,
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2006 01:45 AM
тАО09-15-2006 01:45 AM
Re: Grant user's right
Please help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2006 08:09 AM
тАО09-15-2006 08:09 AM
Re: Grant user's right
a) as root, use visudo to edit the /etc/sudoers file and add a line similar to:
john ALL=(ALL) command to run including parameters
b) as user john, run:
sudo command to run including parameters
The alternative is to follow spex's suggestion number 4. Just mount the filesystem with the "acl" option and grant execute permission to the user. spex has provided step by step instructions for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2006 08:58 AM
тАО09-15-2006 08:58 AM
Re: Grant user's right
Dummy me...I forgot to run "sudo su -" command after I logged in as john. It's now working prefectly.
However, I would like to know more about ACL - I know ACL pretty well the VMS world, but lost when I read the docs online for Linux.
Does anyone here have step-by-step instructions on setting up ACL in RHAS 2.1 AS?
Thanks anyone for your help!!
Have a great weekend.
Jorge