- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
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
06-09-2005 05:03 AM
06-09-2005 05:03 AM
System Administration
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 05:08 AM
06-09-2005 05:08 AM
Re: System Administration
1. Sounds to me like an education issue
2. Be careful who you give root access to ?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 05:08 AM
06-09-2005 05:08 AM
Re: System Administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 05:12 AM
06-09-2005 05:12 AM
Re: System Administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 05:31 AM
06-09-2005 05:31 AM
Re: System Administration
For all other situations, you will want the education/knowledge of who has the ability to do the rm command. This is a big part of knowing who has the root access, or who has UID=0 (equal to root access).
There is no sure way to prevent. You can provide additional warnings via aliasing and you can educate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 06:46 AM
06-09-2005 06:46 AM
Re: System Administration
(PS1=`hostname`'$PWD # ' ; export PS1)
and get in the habit of always specifying the entire path when using the rm command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 07:41 PM
06-17-2005 07:41 PM
Re: System Administration
There are safeguards that can be taken by the user to prevent an
accidental removal of files by the rm command.
1. If running ksh (Korn Shell), you can set an alias in your
.kshrc file to default rm to rm -i. This will cause rm
to prompt you for verification before removing your files
whenever rm is executed.
Enter the following file in the .kshrc file:
alias rm='rm -i'
2. Creating a file named "-i" in a directory will expand the
rm * command to rm -i, thus prompting for verification.
You must put this file in each subdirectory to safeguard it.
Create the "-i" file as follows:
echo "" > -i
regards
Vinod K