<?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: About su in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695583#M248166</link>
    <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can do this with single command itself,&lt;BR /&gt;&lt;BR /&gt;#su - adm_usr -c &lt;COMMAND_TO_BE_EXECUTED&gt;&lt;BR /&gt;&lt;BR /&gt;-c option allows us to execute a command after su.&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.&lt;/COMMAND_TO_BE_EXECUTED&gt;</description>
    <pubDate>Tue, 20 Dec 2005 22:04:50 GMT</pubDate>
    <dc:creator>Sivakumar TS</dc:creator>
    <dc:date>2005-12-20T22:04:50Z</dc:date>
    <item>
      <title>About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695582#M248165</link>
      <description>In the system , there is a system user ( eg. adm_usr ) that is assigned to run a system process ( program1 ) , now I want to let user have the permission to run this program , so I want the user can su to this user before run the program ( like below ) , but now it can't becaus the ID adm_usr is not null password , is it possible ? thx.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vi program1&lt;BR /&gt;touch file1&lt;BR /&gt;su - adm_usr&lt;BR /&gt;cp file1 file2</description>
      <pubDate>Tue, 20 Dec 2005 22:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695582#M248165</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-12-20T22:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695583#M248166</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can do this with single command itself,&lt;BR /&gt;&lt;BR /&gt;#su - adm_usr -c &lt;COMMAND_TO_BE_EXECUTED&gt;&lt;BR /&gt;&lt;BR /&gt;-c option allows us to execute a command after su.&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.&lt;/COMMAND_TO_BE_EXECUTED&gt;</description>
      <pubDate>Tue, 20 Dec 2005 22:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695583#M248166</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2005-12-20T22:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695584#M248167</link>
      <description>Unless thay know adm_usr password, they can not do that. You can use sudo to achive what you want to do.</description>
      <pubDate>Tue, 20 Dec 2005 22:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695584#M248167</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-12-20T22:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695585#M248168</link>
      <description>thx replies ,&lt;BR /&gt;&lt;BR /&gt;hi RAC &lt;BR /&gt;with the su command , if i just want to let the user can su to adm_usr and copy a file to a specific path , what can I do ? thx.</description>
      <pubDate>Tue, 20 Dec 2005 22:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695585#M248168</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-12-20T22:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695586#M248169</link>
      <description>Set sudo to allow for copying of files to intended users. Install sudo and configure it to do as follows.&lt;BR /&gt;user_alias group1 = "user1 user2 user3"&lt;BR /&gt;cmnd_alias copy="cp source_file dest_file"&lt;BR /&gt;&lt;BR /&gt;group1 ALL=copy NOPASSWD:ALL&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Dec 2005 00:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695586#M248169</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-12-21T00:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695587#M248170</link>
      <description>May be you can choose ways as,&lt;BR /&gt;&lt;BR /&gt; 1) installing sudo and giving permission to use cp command with adm_user&lt;BR /&gt; &lt;BR /&gt; 2) setting up r* command execution setup and use rcp&lt;BR /&gt;&lt;BR /&gt; 3) If you know the password of adm_usr account then use ftp with user command option&lt;BR /&gt;&lt;BR /&gt; 4) You can use expect scripting to achive this&lt;BR /&gt;&lt;BR /&gt; 5) You can use telnet piping also as,&lt;BR /&gt;&lt;BR /&gt;  (&lt;BR /&gt;  sleep 1&lt;BR /&gt;  echo "adm_user"&lt;BR /&gt;  sleep 2&lt;BR /&gt;  echo "&lt;PASSWORD&gt;"&lt;BR /&gt;  sleep 1&lt;BR /&gt;  echo "cp file1 file2"&lt;BR /&gt;  sleep 2&lt;BR /&gt;  echo "exit 0"&lt;BR /&gt;  ) | telnet localhost&lt;BR /&gt; &lt;BR /&gt;-Muthu&lt;/PASSWORD&gt;</description>
      <pubDate>Wed, 21 Dec 2005 00:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695587#M248170</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-21T00:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695588#M248171</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;I tried your method , but I am not too understand it, If I want any user who run the program ( program1 ) can copy any file to a specific path , while login ID adm_usr:ADM have this permission to do it ,  what can I do ? thx</description>
      <pubDate>Wed, 21 Dec 2005 01:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695588#M248171</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-12-21T01:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: About su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695589#M248172</link>
      <description>thx Muthukumar ,&lt;BR /&gt;&lt;BR /&gt;I just want to cp to localhost . thx</description>
      <pubDate>Wed, 21 Dec 2005 01:05:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-su/m-p/3695589#M248172</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-12-21T01:05:29Z</dc:date>
    </item>
  </channel>
</rss>

