- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Run remsh command with no login account on target ...
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
10-06-2004 04:39 AM
10-06-2004 04:39 AM
Run remsh command with no login account on target host
The problem I have is that users need a login account on the target for it to execute. I don't want users to be able to log on the target host.
I've setup hosts.equiv on the target with one entry: + +
Users accounts have the same uid/gid on their host and the target host however I want to make disable login capability on the target. If I set the user's shell to /usr/bin/false in the passwd file on the target host the command fails.
How can I set this up so that users cannot remotely login to the target host yet still execute a remsh command? I though of rexec but I also don't what users to be prompted for a password.
Norm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:44 AM
10-06-2004 04:44 AM
Re: Run remsh command with no login account on target host
Try the command listed below.
"remsh $SYSTEM -n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 05:03 AM
10-06-2004 05:03 AM
Re: Run remsh command with no login account on target host
Most users accounts are only created in the passwd file. They do not have a local home dir on the target host. The reason for this is due to a client server app that needs consistent UID/GIDs. Provided that they are the same on the server and client everything works fine. We have not yet set up NIS+ as were looking at a common login implementation across Windows/Unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 05:53 AM
10-06-2004 05:53 AM
Re: Run remsh command with no login account on target host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:19 AM
10-06-2004 06:19 AM
Re: Run remsh command with no login account on target host
Set the users up for ksh
create .kshrc for each of them:
# Say good bye for interactive shells
echo $-
case $- in
*i*) exit 0;;
*);;
esac
In their .profile:
ENV=$HOME/.kshrc; export ENV # To set up korn shell (ksh)
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:40 AM
10-06-2004 06:40 AM
Re: Run remsh command with no login account on target host
you could set up those users to share an overall common home directory.
Second: Configure a script that sudo's your programm as the login shell. -> Let them rlogin instead of remsh :-)
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:11 PM
10-06-2004 06:11 PM
Re: Run remsh command with no login account on target host
+ + entry there.
Try as,
remsh
Else
use rexec there.
rexec
command"
It will not prompt for passwd there.
IF you use rlogin we can not control remote shell commands with the executed command there on new shell.
HTH.