<?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: Command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087081#M143933</link>
    <description>Rich, &lt;BR /&gt;&lt;BR /&gt;Most Oracle applcations do not setup a UNIX id, just a database id.&lt;BR /&gt;&lt;BR /&gt;But you could check to see if the user is in /etc/passwd and has valid shell listed.</description>
    <pubDate>Tue, 07 Oct 2003 10:45:53 GMT</pubDate>
    <dc:creator>Robert Gamble</dc:creator>
    <dc:date>2003-10-07T10:45:53Z</dc:date>
    <item>
      <title>Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087077#M143929</link>
      <description>How can I tell (HP-UX 11.0, running Oracle 9) wether or not a user has command line access?</description>
      <pubDate>Tue, 07 Oct 2003 10:39:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087077#M143929</guid>
      <dc:creator>Rich Sanders</dc:creator>
      <dc:date>2003-10-07T10:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087078#M143930</link>
      <description>Try logging in as the user;&lt;BR /&gt;&lt;BR /&gt;su - &lt;USER&gt;&lt;BR /&gt;&lt;BR /&gt;If you get a shell prompt up then they have command line access. Even if they dont if they can run vi then they can get to command line access with a !sh  the same applies from other programs. You should presume most users can get to the command line if they try hard enough.&lt;BR /&gt;&lt;/USER&gt;</description>
      <pubDate>Tue, 07 Oct 2003 10:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087078#M143930</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-10-07T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087079#M143931</link>
      <description>Rich,&lt;BR /&gt; &lt;BR /&gt;Generally, a user without command line access will have an application specified in the last field of /etc/passwd, so that when they log in they are forced into a menu or program which they can (hopefully) not break out of.  Check /etc/passwd.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Pete&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2003 10:43:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087079#M143931</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-07T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087080#M143932</link>
      <description>You mean shell access?&lt;BR /&gt;Look to /etc/passwd. In the last entry of every user there is a shell. If it is a valis shell (/bin/sh, usr/bin/sh, ksh, csh, bash etc) - this user can login to the system. If there is something like "/usr/bin/false", "/nonexistent" etc - this user dont have an access.&lt;BR /&gt;&lt;BR /&gt;-Tomek</description>
      <pubDate>Tue, 07 Oct 2003 10:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087080#M143932</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-10-07T10:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087081#M143933</link>
      <description>Rich, &lt;BR /&gt;&lt;BR /&gt;Most Oracle applcations do not setup a UNIX id, just a database id.&lt;BR /&gt;&lt;BR /&gt;But you could check to see if the user is in /etc/passwd and has valid shell listed.</description>
      <pubDate>Tue, 07 Oct 2003 10:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087081#M143933</guid>
      <dc:creator>Robert Gamble</dc:creator>
      <dc:date>2003-10-07T10:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087082#M143934</link>
      <description>You can check tty entry in the user's profile.&lt;BR /&gt;&lt;BR /&gt;Disable console:&lt;BR /&gt;&lt;BR /&gt;if ['tty'=/dev/console]&lt;BR /&gt;then &lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Enable console only:&lt;BR /&gt;&lt;BR /&gt;if ['tty'!=/dev/console]&lt;BR /&gt;then &lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Tue, 07 Oct 2003 10:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087082#M143934</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2003-10-07T10:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087083#M143935</link>
      <description>The question starts with: how does a "user" gain access? Is it via telnet or remsh or ftp or some custom socket connection. The answer dictates whether a a shell prompt exists. Unix does not have a command line, just program services provided by system calls. The command line is typically a shell interface, so as mentioned, check /etc/passwd to see if the user has a shell (/usr/bin/sh /usr/bin/ksh /usr/bin/csh etc), something like this:&lt;BR /&gt; &lt;BR /&gt;cut -f1,7 -d: /etc/passwd&lt;BR /&gt; &lt;BR /&gt;Now it is possible that some users have a local .profile that starts a menu that restricts the user but that is a poor idea. The user should have the menu program as their shell so that there is no possibility of getting a shell prompt (command line).</description>
      <pubDate>Tue, 07 Oct 2003 22:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line/m-p/3087083#M143935</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-10-07T22:27:58Z</dc:date>
    </item>
  </channel>
</rss>

