- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disable users changing their password
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
05-21-2001 03:51 AM
05-21-2001 03:51 AM
Disable users changing their password
have the ability to change their own
password. I have tried this via sam
with the 'Allow only Super-User to
change password'. This only expires it
and once changed reverts back to
the 'Normal Behaviour' option.
P.S. I'm on HP-UX 11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 04:39 AM
05-21-2001 04:39 AM
Re: Disable users changing their password
In the SAM / Users&groups / users / modify user
there is a dropdown menu 'modify password options' for password behaviour. There you will find the option
'Password change only by superuser'.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 04:49 AM
05-21-2001 04:49 AM
Re: Disable users changing their password
modprpw -m mintim=
If you set it to say 52 weeks they wont be allowed to change their passwords for a year, then you can simply reset it to another year...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 04:49 AM
05-21-2001 04:49 AM
Re: Disable users changing their password
Is there a way to control the passwd file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 04:52 AM
05-21-2001 04:52 AM
Re: Disable users changing their password
One thing I tought of would be for your
to create a wrapper script around the passwd binary (/bin/passwd, /usr/bin/passwd), which would check against the user (e.g. $LOGNAME). If the user matches, set exit status appropriatly. If the user is not a match (e.g permitted), then call /usr/bin/passwd.real to change the user password. I have not tried this but this is just a thought that sprang to mind. Example hack lies below.
Regards,
-> Brian Hackley
#!/sbin/sh
# set -x
# Remember permissions and owner for this wrapper must match the original file.
# Copyright 2001 Hewlett-Packard Co.
if [ $LOGNAME = "charlie ]
then
exit -1
else
/usr/bin/passwd.real $*
exit $?
fi
# End of wrapper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 05:59 AM
05-21-2001 05:59 AM
Re: Disable users changing their password
passwd -n 441 username
but when I tried to reconnect as the use the password was expired.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 07:36 AM
05-21-2001 07:36 AM
Re: Disable users changing their password
The sort of functionality you want you really need to be running a trusted system. If not, then you will need a wrapper script as Brian suggested earlier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 03:39 AM
05-22-2001 03:39 AM
Re: Disable users changing their password
i hv a solution for u. Keep in mind that this solution prevents all the users except superusers from changing their / other's password.
#cp /usr/bin/passwd /usr/bin/passwd.backup
( Backing up old passwd command for safety)
#chmod u-s /usr/bin/passwd
(Removes SUID so that only super user can modify /etc/passwd so their passwords)
Hope this helps you.......
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 11:50 AM
05-22-2001 11:50 AM
Re: Disable users changing their password
I believe that if you set password aging on the account so that the minimum time is greater than the maximum time, then the user will not be able to change their password:
passwd -x 0 -n 7 forgetful
should do the trick for user "forgetful". See the passwd(1) man page for more information.
--Bruce
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 11:30 PM
05-22-2001 11:30 PM
Re: Disable users changing their password
Within sam I set these values to 62 and 63 respectively which means the password will expire after 62 weeks but cannot be changed.
Using sam did not have the effect to expire my password. Very odd.
This looks to be the best workaround. It means every 62 weeks I must remember to change the password.
Thanks for the contribution guys.