- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh host1 passwd user1
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
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
тАО04-06-2007 02:28 AM
тАО04-06-2007 02:28 AM
# remsh host1 passwd user1
#
Then nothing. ???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 02:40 AM
тАО04-06-2007 02:40 AM
Solutionwith the user, and it can't do that in this
context.
"man remsh":
[...] remsh cannot be
used to run commands that require a terminal interface (such as vi) or
commands that read their standard error (such as more). In such
cases, use rlogin or telnet instead (see rlogin(1) and telnet(1)).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 02:46 AM
тАО04-06-2007 02:46 AM
Re: remsh host1 passwd user1
because according to the man page, the command is:
remsh hostname [ -n ] [ -l username ] command
so you can do:
# remsh host1 -l user1 "uname -a"
on host1, the home directory of user1 must contain a .rhosts file, this file can have these informations:
remote_host user1
you must also verify that the daemon is running:
# ps -ef |grep remsh |grep -v grep
root 11056 2395 0 Mar 12 ? 0:00 remshd
you can read remsh(1) for more informations.
Regards,
Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 02:46 AM
тАО04-06-2007 02:46 AM
Re: remsh host1 passwd user1
than it is on stdin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 02:53 AM
тАО04-06-2007 02:53 AM
Re: remsh host1 passwd user1
It may be confusing at first, but:
remsh = remsh
hostname = host1
[ -n ] (not used)
[ -l username ] (not used)
command = passwd user1
It's the "passwd" command which is not doing
what he expected, not "remsh".
"passwd user1" could have been quoted to make
it clearer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 03:41 AM
тАО04-06-2007 03:41 AM
Re: remsh host1 passwd user1
Basically, I need to setup something
for the helpdesk to run remote password
changes on old 10.20 boxes that are not
NIS bound. I remember doing something
like this in the past but it was with
Solaris 2.6.
I may have to use "expect" or if someone
has a perl script that would do the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 05:30 AM
тАО04-06-2007 05:30 AM
Re: remsh host1 passwd user1
i use to quote my commands after a remsh/rsh, i though passwd was an arguments to remsh 0o.
you can't launch an interactive command from rsh/remsh.
you can crypt your passwd and modify the /etc/paswd file for changing password on multiple servers, and you can do it more secure by using ssh.
Regards,
Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 11:24 AM
тАО04-06-2007 11:24 AM
Re: remsh host1 passwd user1
Frequently, it helps to provide the actual
problem which you are trying to solve, rather
than asking how to debug the implementation
of a proposed solution to that problem.
In this case, I can tell you why your attempt
failed, but not how to do what you want. I'd
be a little amazed if "expect" could do the
job either, but I've been amazed before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 05:59 PM
тАО04-06-2007 05:59 PM
Re: remsh host1 passwd user1
passwd expect script
seems to turn up more than a few examples, so
it must be a popular technique, contrary to
my initial expectations. Trust no one, I
always say. Especially me.