- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Custom rm, cp, and mv scripts for restricted SAM u...
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
08-02-2005 03:09 PM
08-02-2005 03:09 PM
I have some "special" users that need to execute some copy, removes, etc as root. They are restricted sam users. I want to create a script (or a set of scripts) that will allow them to rm, cp, whatever as root...but I don't want them to be able to delete system files, logs, etc. I also would like to track what they do within the script. Any help would be appreciated. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 03:29 PM
08-02-2005 03:29 PM
Re: Custom rm, cp, and mv scripts for restricted SAM users
NOTE: neither SAM or sudo know what the "important" files are. The most dangerous commands for Unix are rm, mv, and chmod -R. Your helpers must be restricted to certain directory paths for their rm commands, but even then, a mistake will be made. There is no list of important files that should not be removed or moved.
Bill Hassell, sysadmin
- Tags:
- sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 03:39 PM
08-02-2005 03:39 PM
Re: Custom rm, cp, and mv scripts for restricted SAM users
We have something set up using SCM, but some of these users really hate the command line and love the GUI thing SAM gives them. You know how it is when you give a user something...you can never take it back LOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 05:22 PM
08-02-2005 05:22 PM
Re: Custom rm, cp, and mv scripts for restricted SAM users
put an html page on their desktop lol.
Put big pauses in the sam scripts then tell em you have this new fast command tool :) LOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 09:53 PM
08-02-2005 09:53 PM
Solutionchmod -R 777 /
That command destroyed the entire system as very important commands (like login and passwd) would not function. It's like having a high school shop class work on your airplane before you fly to Europe...
Bill Hassell, sysadmin