<?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 Permissions on passwd command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570877#M873147</link>
    <description>Hi folks,&lt;BR /&gt;My guys need to use the passwd command whitout root account.  I try to make a shell script, a C script and set the sticky bit. But I got every time Permission denied. I don't want to use sudo or restricted sam. My guys need to operate at the command line. thanks!</description>
    <pubDate>Mon, 27 Aug 2001 17:23:37 GMT</pubDate>
    <dc:creator>Stéphane Gauthier</dc:creator>
    <dc:date>2001-08-27T17:23:37Z</dc:date>
    <item>
      <title>Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570877#M873147</link>
      <description>Hi folks,&lt;BR /&gt;My guys need to use the passwd command whitout root account.  I try to make a shell script, a C script and set the sticky bit. But I got every time Permission denied. I don't want to use sudo or restricted sam. My guys need to operate at the command line. thanks!</description>
      <pubDate>Mon, 27 Aug 2001 17:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570877#M873147</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2001-08-27T17:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570878#M873148</link>
      <description>Are you trying to give your people the ability to change other peoples accounts? root?</description>
      <pubDate>Mon, 27 Aug 2001 17:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570878#M873148</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2001-08-27T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570879#M873149</link>
      <description>Dominic-&lt;BR /&gt;&lt;BR /&gt;You should always be able to run the passwd command from the prompt for your account (If I am logged in, I can always run it to change my password).  If you can't run it, then the permissions on it must have been changed so that all users cannot execute it. The permissions on /bin/passwd should be r-sr-xr-x&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Mon, 27 Aug 2001 18:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570879#M873149</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2001-08-27T18:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570880#M873150</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;I can change my password with the command passwd, but I'm not able to change the password for other account ; That's what I need.</description>
      <pubDate>Mon, 27 Aug 2001 18:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570880#M873150</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2001-08-27T18:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570881#M873151</link>
      <description>Hi Dominic,&lt;BR /&gt;&lt;BR /&gt;Only root can change a user's password without knowing the old password. If you want a user to be able to change another user's password without knowing the old password, you will have to use something like sudo without having to give away root's password.&lt;BR /&gt;&lt;BR /&gt;-Ramesh</description>
      <pubDate>Mon, 27 Aug 2001 19:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570881#M873151</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-27T19:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570882#M873152</link>
      <description>The only way that I can think of would be to write a script that would su to root and run the passwd command.  You would have to write in the root password in the file, which can have it's own problems.  A downside to this is that giving your users the ability to change each others password also means that they can change the root password.  It also seems like a huge security issue to have them able to change each others.  Why exactly are you doing this (file permissions, etc)?  &lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Mon, 27 Aug 2001 19:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570882#M873152</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2001-08-27T19:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570883#M873153</link>
      <description>Hi Dominic:&lt;BR /&gt;&lt;BR /&gt;First, it is the 'setuid' bit, not the 'sticky' bit that is set for the 'passwd' executable.  Since 'passwd' is owned by root, when run it runs *as* root.&lt;BR /&gt;&lt;BR /&gt;The issue with 'passwd' or any wrapper that you would surround it with, is that 'passwd' calls 'getlogin()' to retrieve the name of the user currently logged in on the terminal associated with the calling process.&lt;BR /&gt;&lt;BR /&gt;The rules of engagement for 'passwd' is that you must be the root user to change the password of other than your own account.&lt;BR /&gt;&lt;BR /&gt;Beyond that, it would be a gross security risk to allow anyone other than root to change passwords of accounts.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 27 Aug 2001 19:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570883#M873153</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-27T19:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570884#M873154</link>
      <description>If you really want to allow users to do something&lt;BR /&gt;like this, and I agree that it can be a gapping security&lt;BR /&gt;hole, try suidperl.  It does a lot of environment&lt;BR /&gt;cleaning to help redude the risk of suid scripts.&lt;BR /&gt;&lt;BR /&gt;I assume this is for a support group that you want&lt;BR /&gt;this functionality.  Using sudo is much simpler, but&lt;BR /&gt;won't give you the flexibility you can build into a script.&lt;BR /&gt;Design and test the script carefully.  This can be a &lt;BR /&gt;major security hole if you don't get it right.&lt;BR /&gt;&lt;BR /&gt;A few things the script should do:&lt;BR /&gt;- Prevent changing the root password, and that&lt;BR /&gt;  of users of this utility.. (Should&lt;BR /&gt;  problably limit password changes to users&lt;BR /&gt;  in a limited number of groups like users)&lt;BR /&gt;- Limit who can run the script. (Check for users&lt;BR /&gt;  in a specific list or members of a specific group.)&lt;BR /&gt;- Log all password changes, but not the passwords.&lt;BR /&gt;  (who, when, what,  your uses shouldn't be able &lt;BR /&gt;  to change the log file.)&lt;BR /&gt;- If you have multiple user groups you might &lt;BR /&gt;  want to allow authorized users to change passwords&lt;BR /&gt;  for other members of their group.</description>
      <pubDate>Mon, 27 Aug 2001 21:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570884#M873154</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2001-08-27T21:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions on passwd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570885#M873155</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Yes, This is for the support group, not for all users...  &lt;BR /&gt;&lt;BR /&gt;Thank you everybody for your help, I will install sudo.  That the most safety way!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dominic</description>
      <pubDate>Tue, 28 Aug 2001 11:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permissions-on-passwd-command/m-p/2570885#M873155</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2001-08-28T11:51:21Z</dc:date>
    </item>
  </channel>
</rss>

