HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp "Your password was changed by root"?
Operating System - HP-UX
1836643
Members
1753
Online
110102
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-02-2007 06:20 AM
08-02-2007 06:20 AM
I setup a new chrooted sftp user. I set a password for this user.
I run "sftp user1@mybox"
Then I get:
"Your password was changed by root
password:"
I enter the correct password.
I get:
"Your password was changed by root
password:"
I enter the correct password..AGAIN.
This process repeats over and over and over and over.....
I thought maybe the account was locked. I checked. It's not locked.
I have the user's shell be per the hp document: /opt/ssh/utils/sftponly
Am I missing something?
I would think if I change the password for user user1 as root, you would think I could actually use be able to use it right?
I run "sftp user1@mybox"
Then I get:
"Your password was changed by root
password:"
I enter the correct password.
I get:
"Your password was changed by root
password:"
I enter the correct password..AGAIN.
This process repeats over and over and over and over.....
I thought maybe the account was locked. I checked. It's not locked.
I have the user's shell be per the hp document: /opt/ssh/utils/sftponly
Am I missing something?
I would think if I change the password for user user1 as root, you would think I could actually use be able to use it right?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 07:28 AM
08-02-2007 07:28 AM
Re: sftp "Your password was changed by root"?
I got further.
According to the syslog.log file, I am not getting past PAM authorization. I said it is not a valid account.
Then I remembered there is an option in sshd_config that will let you see who is allowed to use sftp.
That was part of it. I now got past that spot.
Now it just jumps right back out.
But no more "Your password was changed by root".
According to the syslog.log file, I am not getting past PAM authorization. I said it is not a valid account.
Then I remembered there is an option in sshd_config that will let you see who is allowed to use sftp.
That was part of it. I now got past that spot.
Now it just jumps right back out.
But no more "Your password was changed by root".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 08:21 AM
08-02-2007 08:21 AM
Re: sftp "Your password was changed by root"?
Yes I ran the ssh_chroot_setup.sh. That part was fine....sort of.
I found my problem.
Problem number 1. I kept getting "Root has changed your password" because I never got past the password part. And I never got past this password part because PAM said I'm not an authorized user. And PAM said I'm not an authorized user because /opt/ssh/etc/sshd_config didn't have the user listed as an allowed ssh user.
Problem number 2. Now, after I correctly log in, I immediately get kicked out.
Cause? The computer didn't know what /opt/ssh/utils/sftponly was. Is it in /etc/shells? Yes. Is it really at /opt/ssh/utils? Yes. Is it at /newroot/./opt/ssh/utils? NOPE. Ah HA. That was it. The ssh_chroot_setup.sh utility should have automatically copied over "sftponly" to under the /newroot/opt/ssh/utils/. It didn't.
So I'm fine now. But there's another thing too. I see it dumped /etc/passwd and /etc/group to the /newroot/./etc directory. I think that's not a very good idea. I wiped out just about all of it. I remember reading about this in one of the hp (or wuftp) documents.
I found my problem.
Problem number 1. I kept getting "Root has changed your password" because I never got past the password part. And I never got past this password part because PAM said I'm not an authorized user. And PAM said I'm not an authorized user because /opt/ssh/etc/sshd_config didn't have the user listed as an allowed ssh user.
Problem number 2. Now, after I correctly log in, I immediately get kicked out.
Cause? The computer didn't know what /opt/ssh/utils/sftponly was. Is it in /etc/shells? Yes. Is it really at /opt/ssh/utils? Yes. Is it at /newroot/./opt/ssh/utils? NOPE. Ah HA. That was it. The ssh_chroot_setup.sh utility should have automatically copied over "sftponly" to under the /newroot/opt/ssh/utils/. It didn't.
So I'm fine now. But there's another thing too. I see it dumped /etc/passwd and /etc/group to the /newroot/./etc directory. I think that's not a very good idea. I wiped out just about all of it. I remember reading about this in one of the hp (or wuftp) documents.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP