<?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: su problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562482#M918871</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Comment out the "cat /etc/copyright"&lt;BR /&gt;message in /etc/profile&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Michael</description>
    <pubDate>Tue, 07 Aug 2001 03:31:16 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2001-08-07T03:31:16Z</dc:date>
    <item>
      <title>su problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562480#M918869</link>
      <description>When I submit the following command, I get this result.&lt;BR /&gt;&lt;BR /&gt;# su - user -c "ls"&lt;BR /&gt;(c)Copyright 1983-1997 Hewlett-Packard Co.,  All Rights Reserved.&lt;BR /&gt;(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California&lt;BR /&gt;...&lt;BR /&gt;Technical Data and Computer Software clause in DFARS 252.227-7013.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                           Hewlett-Packard Company&lt;BR /&gt;...&lt;BR /&gt;forth in FAR 52.227-19(c)(1,2).&lt;BR /&gt;You have mail.&lt;BR /&gt;test1.txt test2.txt&lt;BR /&gt;test3.txt test4.txt&lt;BR /&gt;logout&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can I run the command so that I will not get the license, copyright message?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 07 Aug 2001 03:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562480#M918869</guid>
      <dc:creator>Ryan Ma</dc:creator>
      <dc:date>2001-08-07T03:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: su problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562481#M918870</link>
      <description>&lt;BR /&gt;su user -c "ls" &lt;BR /&gt;&lt;BR /&gt;can do it.</description>
      <pubDate>Tue, 07 Aug 2001 03:30:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562481#M918870</guid>
      <dc:creator>Frank Li</dc:creator>
      <dc:date>2001-08-07T03:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: su problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562482#M918871</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Comment out the "cat /etc/copyright"&lt;BR /&gt;message in /etc/profile&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Michael</description>
      <pubDate>Tue, 07 Aug 2001 03:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562482#M918871</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-08-07T03:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: su problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562483#M918872</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;su user -c "ls"&lt;BR /&gt;will work for the ls command but if you read the man pages for the command su it will tell you that without the - you will become user while retaining the previously exported environment. By doing&lt;BR /&gt;su - user -c "ls"&lt;BR /&gt;It says you become user but change the environment to what would be expected if the user had originally logged in.And will execute command and its arguments using the temporary environment and permissions of user. This is why the - option is important when you do an su for the user root. Because the non root user would not have permissions to execute a root command. &lt;BR /&gt;You can always do an su -d user &lt;BR /&gt;wich will promt you for a password but not give you the login style promts. And you will stay logged in as that user until you exit out of that user name. I suggest the best way would be to do what Michael recommends&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2001 03:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-problem/m-p/2562483#M918872</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-07T03:58:49Z</dc:date>
    </item>
  </channel>
</rss>

