<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disable users changing their password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530695#M869152</link>
    <description>I'm not on a trusted system. I did try &lt;BR /&gt;passwd -n 441 username &lt;BR /&gt;but when I tried to reconnect as the use the password was expired.</description>
    <pubDate>Mon, 21 May 2001 12:59:41 GMT</pubDate>
    <dc:creator>Mark Daintree</dc:creator>
    <dc:date>2001-05-21T12:59:41Z</dc:date>
    <item>
      <title>Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530690#M869147</link>
      <description>I want to set up a user that does not&lt;BR /&gt;have the ability to change their own&lt;BR /&gt;password. I have tried this via sam&lt;BR /&gt;with the 'Allow only Super-User to&lt;BR /&gt;change password'.  This only expires it&lt;BR /&gt;and once changed reverts back to&lt;BR /&gt;the 'Normal Behaviour' option.&lt;BR /&gt;P.S. I'm on HP-UX 11.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 May 2001 10:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530690#M869147</guid>
      <dc:creator>Mark Daintree</dc:creator>
      <dc:date>2001-05-21T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530691#M869148</link>
      <description>Hi there.&lt;BR /&gt;In the SAM / Users&amp;amp;groups / users / modify user&lt;BR /&gt;there is a dropdown menu 'modify password options'  for password behaviour. There you will find the option &lt;BR /&gt;'Password change only by superuser'.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Mon, 21 May 2001 11:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530691#M869148</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-05-21T11:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530692#M869149</link>
      <description>On a trusted system use the command;&lt;BR /&gt;&lt;BR /&gt;modprpw -m mintim=&lt;DAYS or="" weeks=""&gt;&lt;BR /&gt;&lt;BR /&gt;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...&lt;BR /&gt;&lt;/DAYS&gt;</description>
      <pubDate>Mon, 21 May 2001 11:49:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530692#M869149</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-21T11:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530693#M869150</link>
      <description>Thanks but as I originally stated this has the effect of 'password expired' when the user next connects.  &lt;BR /&gt;&lt;BR /&gt;Is there a way to control the passwd file?</description>
      <pubDate>Mon, 21 May 2001 11:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530693#M869150</guid>
      <dc:creator>Mark Daintree</dc:creator>
      <dc:date>2001-05-21T11:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530694#M869151</link>
      <description>Alister,&lt;BR /&gt;One thing I tought of would be for your&lt;BR /&gt;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.&lt;BR /&gt;Regards,&lt;BR /&gt;-&amp;gt; Brian Hackley&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;# set -x&lt;BR /&gt;# Remember permissions and owner for this wrapper must match the original file.&lt;BR /&gt;# Copyright 2001 Hewlett-Packard Co.&lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME = "charlie ]&lt;BR /&gt;then&lt;BR /&gt;     exit -1&lt;BR /&gt;else &lt;BR /&gt;     /usr/bin/passwd.real $*&lt;BR /&gt;     exit $?&lt;BR /&gt;fi&lt;BR /&gt;# End of wrapper</description>
      <pubDate>Mon, 21 May 2001 11:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530694#M869151</guid>
      <dc:creator>Brian Hackley</dc:creator>
      <dc:date>2001-05-21T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530695#M869152</link>
      <description>I'm not on a trusted system. I did try &lt;BR /&gt;passwd -n 441 username &lt;BR /&gt;but when I tried to reconnect as the use the password was expired.</description>
      <pubDate>Mon, 21 May 2001 12:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530695#M869152</guid>
      <dc:creator>Mark Daintree</dc:creator>
      <dc:date>2001-05-21T12:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530696#M869153</link>
      <description>&lt;BR /&gt;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.</description>
      <pubDate>Mon, 21 May 2001 14:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530696#M869153</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-21T14:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530697#M869154</link>
      <description>hi ,&lt;BR /&gt;&lt;BR /&gt;i hv a solution for u. Keep in mind that this solution prevents all the users except superusers from changing their / other's  password.&lt;BR /&gt;&lt;BR /&gt;#cp /usr/bin/passwd /usr/bin/passwd.backup &lt;BR /&gt;&lt;BR /&gt;( Backing up old passwd command for safety)&lt;BR /&gt;&lt;BR /&gt;#chmod u-s /usr/bin/passwd &lt;BR /&gt;&lt;BR /&gt;(Removes SUID so that only super user can modify /etc/passwd so their passwords)&lt;BR /&gt;&lt;BR /&gt;Hope this helps you.......&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;</description>
      <pubDate>Tue, 22 May 2001 10:39:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530697#M869154</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2001-05-22T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530698#M869155</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;passwd   -x 0   -n 7   forgetful&lt;BR /&gt;&lt;BR /&gt;should do the trick for user "forgetful".  See the passwd(1) man page for more information.&lt;BR /&gt;&lt;BR /&gt;--Bruce&lt;BR /&gt;&lt;BR /&gt;--Bruce</description>
      <pubDate>Tue, 22 May 2001 18:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530698#M869155</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2001-05-22T18:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disable users changing their password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530699#M869156</link>
      <description>I tried the passwd -x 0 -n 1 option which had the effect of expiring the password for the user again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Within sam I set these values to 62 and 63 respectively which means the password will expire after 62 weeks but cannot be changed.&lt;BR /&gt;Using sam did not have the effect to expire my password.  Very odd.&lt;BR /&gt;&lt;BR /&gt;This looks to be the best workaround.  It means every 62 weeks I must remember to change the password.&lt;BR /&gt;&lt;BR /&gt;Thanks for the contribution guys.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2001 06:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-users-changing-their-password/m-p/2530699#M869156</guid>
      <dc:creator>Mark Daintree</dc:creator>
      <dc:date>2001-05-23T06:30:33Z</dc:date>
    </item>
  </channel>
</rss>

