- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running passwd with rexec
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
12-11-2001 08:05 AM
12-11-2001 08:05 AM
I am assuming this has something to do with getlogname failing becase rexec doesn't put an entry in utmp. Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 08:22 AM
12-11-2001 08:22 AM
Re: Running passwd with rexec
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 01:30 PM
12-11-2001 01:30 PM
Re: Running passwd with rexec
1. Why do you have .rhosts files on a trusted system?
you can use cryptpw to generate an encrypted passwd sting. copy it in the /etc/passwd file and save it.
this can be done with a simple script.
Hope this will help,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 01:45 PM
12-11-2001 01:45 PM
Re: Running passwd with rexec
You could for example, have a user set up to do the rexec (don't reccommend root) and have the auth details for that user specified in pam_user.conf to allow insertion of users into the password file.
If that makes sense.
man pam.conf for libraries, services and modules used.
man pam_user.conf for configuration of per user pam settings.
The pam_user.conf file will override the default pam.conf (system wide) for users specified in it.
I'm not sure how you'd do this, but I'm 100% sure it's possible.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 04:34 AM
12-12-2001 04:34 AM
SolutionLooking at a syscall trace of the passwd command it appears that things go wrong after it gets a ENXIO (no such device or address) when attempting to open /dev/tty. This is expected since there is no controlling terminal associated with a process started by rexecd.
I guess this means you can't run the passwd command from rexec. You could try telnet as a workaround if you really need to do this:
{
sleep 1
echo
sleep 1
echo
sleep 1
echo "passwd"
sleep 1
echo
sleep 1
echo
sleep 1
echo
sleep 1
echo "logout"
} | telnet
NOTE: this telnet solution breaks with the current telnet patch. I'm told a fix is on its way.
Regards,
Steve