<?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: Controling users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885387#M280623</link>
    <description>If you don't want to be secure try this:&lt;BR /&gt;1. copy ksh or sh to $DIR/become_oracle&lt;BR /&gt;2. make it a SUID program owned by oracle_admin&lt;BR /&gt;3. put an arbitrary string as oracle user password&lt;BR /&gt;4. users do: $DIR/become_oracle&lt;BR /&gt;&lt;BR /&gt;This is horrible security-wise but should work.&lt;BR /&gt;&lt;BR /&gt;Let me know, I don't think I tried it recently.&lt;BR /&gt;&lt;BR /&gt;You make me a hacker, my friend,&lt;BR /&gt;Marco</description>
    <pubDate>Wed, 25 Oct 2006 03:55:49 GMT</pubDate>
    <dc:creator>FERRARI MARCO</dc:creator>
    <dc:date>2006-10-25T03:55:49Z</dc:date>
    <item>
      <title>Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885379#M280615</link>
      <description>Hello to all!&lt;BR /&gt;&lt;BR /&gt;I want to define a user that can not do rlogin/telnet/remsh/ssh to a server, but that I can "su" to it from any defined server.&lt;BR /&gt;Does anyone knows how to do this?&lt;BR /&gt;&lt;BR /&gt;thank you.</description>
      <pubDate>Tue, 24 Oct 2006 01:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885379#M280615</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2006-10-24T01:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885380#M280616</link>
      <description>Hi,&lt;BR /&gt;not sure I understand. Your user is not allowed to connect to the machine, but the command su requires root password access ??&lt;BR /&gt;In order to use su you have to have a session, so you have to have logged on.&lt;BR /&gt;Please clarify.</description>
      <pubDate>Tue, 24 Oct 2006 01:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885380#M280616</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-24T01:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885381#M280617</link>
      <description>No . what I mean is that I have A user that I login with it to a server lets call it "leonid" from user "leonid" I want to do a su to user "oracle" ( lets say I know the password ) . I want to make sure that no one does rlogin or telnet with user "oracle" only "su" to that user.&lt;BR /&gt;&lt;BR /&gt;Is this better?</description>
      <pubDate>Tue, 24 Oct 2006 01:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885381#M280617</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2006-10-24T01:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885382#M280618</link>
      <description>Hi,&lt;BR /&gt;could you please try:&lt;BR /&gt;Include in /etc/profile&lt;BR /&gt;if [ $LOGNAME = oracle -a $0 != "-su" ]&lt;BR /&gt;then&lt;BR /&gt;    echo "Error: oracle logins only via su"&lt;BR /&gt;    exit&lt;BR /&gt;fi&lt;BR /&gt;Then try and log in as oracle (should fail).&lt;BR /&gt;Log on as "leonid" and su to oracle.&lt;BR /&gt;You can also play with /etc/default/security, setting SU_ROOT_GROUP&lt;BR /&gt;But best security is not to allow the oracle password to be known.</description>
      <pubDate>Tue, 24 Oct 2006 02:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885382#M280618</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-24T02:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885383#M280619</link>
      <description>Hi,&lt;BR /&gt;also found some similar requests:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1048593" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1048593&lt;/A&gt;&lt;BR /&gt;and to restrict access to su:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=992121" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=992121&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you found my replies helpful, please see:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#22" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#22&lt;/A&gt; . Your profile shows you have only allocated points to 1 answer out of 9.</description>
      <pubDate>Tue, 24 Oct 2006 02:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885383#M280619</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-24T02:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885384#M280620</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;A user must be logged in to su.&lt;BR /&gt;&lt;BR /&gt;If you disable rlogin/telnet/remsh/ssh then the user can not log in and therefore can not su.&lt;BR /&gt;&lt;BR /&gt;You can chroot the user and limit his/her access prior to the su.&lt;BR /&gt;&lt;BR /&gt;I think your need to look at the larger picture concerning security here and set a reasonable goal, which is not apparent from your post.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 24 Oct 2006 02:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885384#M280620</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-10-24T02:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885385#M280621</link>
      <description>I think we accomplished what you look for by:&lt;BR /&gt;&lt;BR /&gt;1. disabling password-in-clear protocols ( rsh, telnet, ftp )&lt;BR /&gt;&lt;BR /&gt;2. using the AllowGroups directive in sshd_config allowing definite groups to ssh to the system ( appl_users, system_admins, system_operators ); in those groups individual accounts are created and maintained, with use of the Trusted System features - like excluding them after 5 failed login tries&lt;BR /&gt;&lt;BR /&gt;3. letting users su to oracle, appl-admin, root or other administrative accounts : that way, 2 passwords are needed for every administrative login&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Marco</description>
      <pubDate>Tue, 24 Oct 2006 10:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885385#M280621</guid>
      <dc:creator>FERRARI MARCO</dc:creator>
      <dc:date>2006-10-24T10:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885386#M280622</link>
      <description>Thanks to everyone fro the answers , unfortunately none of your answers suplied a solution for me:&lt;BR /&gt;Peter Gordon - I checked the solution through the /etc/profile but the param. $0 always contains "-sh" or "-ksh" no metter the way I loged in . &lt;BR /&gt;&lt;BR /&gt;Unfortunately my system is not that secure and the login protocols are been used by user so I cant disable any of them.&lt;BR /&gt;&lt;BR /&gt;I guess my main problem is that I am looking for a temporary and a qucik for implementation solution. &lt;BR /&gt;&lt;BR /&gt;Thanks to all.</description>
      <pubDate>Wed, 25 Oct 2006 02:14:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885386#M280622</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2006-10-25T02:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885387#M280623</link>
      <description>If you don't want to be secure try this:&lt;BR /&gt;1. copy ksh or sh to $DIR/become_oracle&lt;BR /&gt;2. make it a SUID program owned by oracle_admin&lt;BR /&gt;3. put an arbitrary string as oracle user password&lt;BR /&gt;4. users do: $DIR/become_oracle&lt;BR /&gt;&lt;BR /&gt;This is horrible security-wise but should work.&lt;BR /&gt;&lt;BR /&gt;Let me know, I don't think I tried it recently.&lt;BR /&gt;&lt;BR /&gt;You make me a hacker, my friend,&lt;BR /&gt;Marco</description>
      <pubDate>Wed, 25 Oct 2006 03:55:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885387#M280623</guid>
      <dc:creator>FERRARI MARCO</dc:creator>
      <dc:date>2006-10-25T03:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Controling users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885388#M280624</link>
      <description>following your advise I tried something like this.&lt;BR /&gt;&lt;BR /&gt;leonid@server&amp;gt; cat become_oracle&lt;BR /&gt;su - oracle&lt;BR /&gt;leonid@server&amp;gt; ls -l become_oracle&lt;BR /&gt;-rwsr-xr-x   1 root       sys             43 Oct 26 09:36 become_oracle&lt;BR /&gt;&lt;BR /&gt;But ... when I execute the file with user leonid , I still get prompted for password.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2006 03:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/controling-users/m-p/3885388#M280624</guid>
      <dc:creator>Leonid Mishkind</dc:creator>
      <dc:date>2006-10-26T03:40:01Z</dc:date>
    </item>
  </channel>
</rss>

