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
тАО07-22-2006 07:11 AM
тАО07-22-2006 07:11 AM
profile
how can we place a shutdown command in the user's .profile so that she can't do anything else.
- Tags:
- shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2006 07:26 AM
тАО07-22-2006 07:26 AM
Re: profile
Define it as the user's shell in /etc/passwd file.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2006 07:28 AM
тАО07-22-2006 07:28 AM
Re: profile
The easiest way is to declare '/usr/sbin/shutdown -r y' as the program to use as the shell (i.e. the last field of the '/etc/passwd' record for the user in question.
Then, specify the user in '/etc/shutdown.allow' to enable his/her use of the command. Your modified '/etc/shutdown.allow' should look something like:
serverhostname root
serverhostname indrajit
See the manpages for 'shutdown(1M)' for additional information.
Given this setup, when your user logs into your server, it is shutdown.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2006 07:39 AM
тАО07-22-2006 07:39 AM
Re: profile
Correction. The 'passwd' entry should read simply:
/sbin/shutdown
in lieu of somethign like '/usr/bin/sh'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2006 08:04 AM
тАО07-22-2006 08:04 AM
Re: profile
How did I *not* answer your question? Would you like a different method?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2006 04:45 PM
тАО07-22-2006 04:45 PM