<?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: Execution with ACL in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327884#M188599</link>
    <description>Henry,&lt;BR /&gt;&lt;BR /&gt;  Nope. ACL cannot be used by a common user to change the password of another user.&lt;BR /&gt;&lt;BR /&gt;  /usr/bin/passwd binary already has SUID enabled. It is the checks inside the passwd binary that lets only root to change the password of other users.&lt;BR /&gt;&lt;BR /&gt;  You can write a small C program with calls to setuid() and then invoke passwd command.&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
    <pubDate>Fri, 09 Jul 2004 16:34:44 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-07-09T16:34:44Z</dc:date>
    <item>
      <title>Execution with ACL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327882#M188597</link>
      <description>Hi, &lt;BR /&gt; &lt;BR /&gt;Does somebody know if could configure the acl so that could a common user change the password of another using the passwd command ?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Henry</description>
      <pubDate>Fri, 09 Jul 2004 15:59:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327882#M188597</guid>
      <dc:creator>Henry Llerena</dc:creator>
      <dc:date>2004-07-09T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with ACL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327883#M188598</link>
      <description>No way but having writing right on /etc/passwd .&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2004 16:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327883#M188598</guid>
      <dc:creator>Cesare Salvioni</dc:creator>
      <dc:date>2004-07-09T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with ACL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327884#M188599</link>
      <description>Henry,&lt;BR /&gt;&lt;BR /&gt;  Nope. ACL cannot be used by a common user to change the password of another user.&lt;BR /&gt;&lt;BR /&gt;  /usr/bin/passwd binary already has SUID enabled. It is the checks inside the passwd binary that lets only root to change the password of other users.&lt;BR /&gt;&lt;BR /&gt;  You can write a small C program with calls to setuid() and then invoke passwd command.&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
      <pubDate>Fri, 09 Jul 2004 16:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327884#M188599</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-07-09T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with ACL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327885#M188600</link>
      <description>Try this&lt;BR /&gt;&lt;BR /&gt;root&amp;gt; cat /usr/local/bin/pex.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;main(argc,argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;{&lt;BR /&gt;  setuid(0);&lt;BR /&gt;  execl("/usr/bin/passwd","passwd",argv[1],0);&lt;BR /&gt;}&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# cc /usr/local/bin/pex.c -o /usr/local/bin/passex&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;root&amp;gt; cat /usr/local/bin/passchg.sh&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;USER=$1&lt;BR /&gt;grep -n "$USER$" /etc/NOTALLOWED &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;  echo "You are not allowed to change the password for $USER"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/passex $USER&lt;BR /&gt;root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;root&amp;gt; chmod 4755 /usr/local/bin/passchg.sh&lt;BR /&gt;&lt;BR /&gt;root&amp;gt; cat /etc/NOTALLOWED&lt;BR /&gt;root&lt;BR /&gt;root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Remember this is a strict NO-NO in security world :-) but if you have to do it then there is one more way&lt;BR /&gt;&lt;BR /&gt;execute sam with -r option and authorize the user(s) to run only the "Accounts for users and groups" section&lt;/UNISTD.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Fri, 09 Jul 2004 17:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-with-acl/m-p/3327885#M188600</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-07-09T17:41:13Z</dc:date>
    </item>
  </channel>
</rss>

