- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing password for a No Shell FTP User !
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
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
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-29-2005 02:48 AM
тАО12-29-2005 02:48 AM
Its not a serious issue, but I am sure you experts will have some good suggestions.
How this is done on FTP servers where they will have 100s of users.
Sample user entry of /etc/passwd is given below.
dragon:dcsGLS3AvOZcE,7/HR:311:105:MidRange Unix L3FTP,,,:/home/dragon/./:/usr/bin/false
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 04:31 AM
тАО12-29-2005 04:31 AM
Re: Changing password for a No Shell FTP User !
You should be able to test this easily too by telneting in as a user that has a password that just expired...you should be able to put your login id and password then it should prompt you to change your password because it has expired, then it will boot you out.
C-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 09:06 AM
тАО12-29-2005 09:06 AM
Re: Changing password for a No Shell FTP User !
This action would require root access because /etc/passwd can only be modified by root.
So i doubt you can allow the users to do it by themselves unless you allow them to switch user to root which is ridiculous, agree?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 09:32 AM
тАО12-29-2005 09:32 AM
Re: Changing password for a No Shell FTP User !
you can have these accounts set up for nonexpiration of the password.
just an idea
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 01:55 PM
тАО12-29-2005 01:55 PM
SolutionOn hp-ux system, they can generate password as follows.
echo "your1234ab" | /usr/lbin/makekey
This will generate a encrypted password, which you can paste in password feild in passwd file. The password has to have 8 chars and last two chars are salt chars. This will set password to your1234. So even sysadmins can not know it, but only user who generates it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 04:33 PM
тАО12-29-2005 04:33 PM
Re: Changing password for a No Shell FTP User !
What you can do is force the user to change his/her pasword at next login,
passwd -f login_id
Though the user has a "no shell" or false as the shell. he can still login using telnet and chnage his/her password. He will not get a shell prompt.
When the user does a telnet to the system and types the login id, it will prompt the user for password and will then prompt the user to change the password. Once the password is changed, instead of the user getting a login prompt, it will be logged out saying no shell for that user or something.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 07:27 PM
тАО12-29-2005 07:27 PM
Re: Changing password for a No Shell FTP User !
DP your idea is good, unfortunately its not meeting my requirement. Special thanks to RAC and Sanjay, Good suggetions.
Cheers Buddies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2005 11:38 PM
тАО12-29-2005 11:38 PM
Re: Changing password for a No Shell FTP User !
Thanks to all.