HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question about sudo
Operating System - HP-UX
1833988
Members
1726
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
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
02-08-2005 09:25 AM
02-08-2005 09:25 AM
Question about sudo
Hi all
I have a quick question about sudo.
I have a directory called /homepages.
Is there a way that I can give user1 root privilages only in the /homepages direcotry and all of the sub dirs but no where else?
Or is there a way to limit rm -rf only in the /homepages direcotry and all of the sub dirs but no where else?
Thanks
Richard
I have a quick question about sudo.
I have a directory called /homepages.
Is there a way that I can give user1 root privilages only in the /homepages direcotry and all of the sub dirs but no where else?
Or is there a way to limit rm -rf only in the /homepages direcotry and all of the sub dirs but no where else?
Thanks
Richard
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 09:48 AM
02-08-2005 09:48 AM
Re: Question about sudo
Richard,
One way to go is create a wrapper script that would basically do something like (we'll call the script: rmscript):
BASE=/homepages
rm -rf ${BASE}/$1
It could then be run like:
$ sudo rmscript subdir1
Some major tweaking is in order, but you get the idea.
P.s. make sure they don't have write access to the script or directory it is in.
David
One way to go is create a wrapper script that would basically do something like (we'll call the script: rmscript):
BASE=/homepages
rm -rf ${BASE}/$1
It could then be run like:
$ sudo rmscript subdir1
Some major tweaking is in order, but you get the idea.
P.s. make sure they don't have write access to the script or directory it is in.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 10:01 AM
02-08-2005 10:01 AM
Re: Question about sudo
Instead of sudo you should probably be looking at ACL (access contol lists) for something like this.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP