- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rexec command
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
01-29-2003 01:52 AM
01-29-2003 01:52 AM
rexec command
i am using shutdown.allow file to allow user1 to shutdown ws1 from ws2 using the command:
rexec ws1 /sbin/shutdown -r -y 0
It works fine .
also, I would like to allow user1 to shutdown ws2 from ws2 ( shutdown ws2 that he is logged on ) using the command:
rexec ws2 /sbin/shutdown -r -y 0
the system will go to run level 3 ( and stay there ) and will not be rebooted as expected .
Any one could help on this issue , I ppretiate.
regds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 04:56 AM
01-29-2003 04:56 AM
Re: rexec command
check on ws2 the /etc/shutdown.allow if user1 is allowed to shutdown the ws.
Regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 11:57 PM
01-31-2003 11:57 PM
Re: rexec command
regds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2003 02:48 AM
02-02-2003 02:48 AM
Re: rexec command
You can try normal shutdown by user1 without
"rexec" at first time. You can try "reboot".
What is the result?
May be you dont need "rexec"?
Regards,Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2003 09:27 AM
02-02-2003 09:27 AM
Re: rexec command
well it sound a bit strange but if you add "ws2 user1" to the local .rhosts file of user1, it will problably work.
If you don't like to add this to his homedir just give the command without the rexec
# /sbin/shutdown -r -y 0
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 01:07 AM
02-03-2003 01:07 AM
Re: rexec command
so, if he tried from any ws to shutdown another ws this is working fine but if he tried to shutdown and reboot ( -r ) his own ws that he is logged on this will bring him to run level 3 .
this is part of dtwmrc file i am using.
I have 25 workstation:
"10.20.1.34" f.exec "dtterm -e rexec ws1 /sbin/shutdown -r -y 0'"
"10.20.1.36" f.exec "dtterm -e rexec ws2 /sbin/shutdown -r -y 0'"
"10.20.1.37" f.exec "dtterm -e rexec ws3 /sbin/shutdown -r -y 0'"
"10.20.1.38" f.exec "dtterm -e rexec ws4 /sbin/shutdown -r -y 0'"
"10.20.1.43" f.exec "dtterm -e rexec ws5 /sbin/shutdown -r -y 0'"
"10.20.1.44" f.exec "dtterm -e rexec ws6 /sbin/shutdown -r -y 0'"
the user can shutdown any of these ws but if tried to shutdown his own ws that he is logged on it will go to run level 3.
regds.