<?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 Sam customization or restricting sam user access in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531318#M368271</link>
    <description>I am looking to see if there is a way to add custom scripts to SAM, that are interactive.  IE:  A script to add users, but the SAM application would need to be able to accept standard input from an interactive shell scrip.&lt;BR /&gt;&lt;BR /&gt;Altertively I would like more granular control over the "Accounts for Users and Groups" menu, to restrict what can be done in there.&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Nov 2009 21:12:46 GMT</pubDate>
    <dc:creator>Medavie</dc:creator>
    <dc:date>2009-11-10T21:12:46Z</dc:date>
    <item>
      <title>Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531318#M368271</link>
      <description>I am looking to see if there is a way to add custom scripts to SAM, that are interactive.  IE:  A script to add users, but the SAM application would need to be able to accept standard input from an interactive shell scrip.&lt;BR /&gt;&lt;BR /&gt;Altertively I would like more granular control over the "Accounts for Users and Groups" menu, to restrict what can be done in there.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 21:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531318#M368271</guid>
      <dc:creator>Medavie</dc:creator>
      <dc:date>2009-11-10T21:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531319#M368272</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;  you can use the following command&lt;BR /&gt;&lt;BR /&gt;# sam -r&lt;BR /&gt;&lt;BR /&gt;with this, you can provide the restricted access of SAM areas to the specific users.</description>
      <pubDate>Tue, 10 Nov 2009 21:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531319#M368272</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-11-10T21:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531320#M368273</link>
      <description>You can also create custom groups and actions that can execute your scripts.&lt;BR /&gt;&lt;BR /&gt;this is a great way not to have to write menus and a secure way to run scripts as root ( assuming you write secure scripts ).&lt;BR /&gt;&lt;BR /&gt;In a past life we used it mainly to delegate user password resets to our Help Desk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 21:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531320#M368273</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-11-10T21:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531321#M368274</link>
      <description>remember sam is not present in 11.31&lt;BR /&gt;&lt;BR /&gt;May want to consider sudo or RBAC</description>
      <pubDate>Wed, 11 Nov 2009 00:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531321#M368274</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2009-11-11T00:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531322#M368275</link>
      <description>&amp;gt;&amp;gt;remember sam is not present in 11.31&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;We have RX series server with 11.31, and  sam is also present.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thnx...farhan</description>
      <pubDate>Thu, 12 Nov 2009 04:41:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531322#M368275</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-11-12T04:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531323#M368276</link>
      <description>Tim,&lt;BR /&gt;&lt;BR /&gt;"You can also create custom groups and actions that can execute your scripts.&lt;BR /&gt;this is a great way not to have to write menus and a secure way to run scripts as root ( assuming you write secure scripts ).&lt;BR /&gt;In a past life we used it mainly to delegate user password resets to our Help Desk"&lt;BR /&gt;&lt;BR /&gt;Were you able to get these scripts to accept STDIN?  My tests of this using the shell script read statement does not work when adding applications in the SMH/Settings/Add Custom menu.  The script runs and gives output, but does not accept STDIN parameters or prompts from the read syntax. ($1, etc)&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 14:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531323#M368276</guid>
      <dc:creator>Medavie</dc:creator>
      <dc:date>2009-11-12T14:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sam customization or restricting sam user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531324#M368277</link>
      <description>&amp;lt;&amp;lt; Were you able to get these scripts to accept STDIN? My tests of this using the shell script read statement does not work when adding applications in the SMH/Settings/Add Custom menu. The script runs and gives output, but does not accept STDIN parameters or prompts from the read syntax. ($1, etc) &amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;It seems the way to launch an application that may require input is to specify a run command of the form&lt;BR /&gt;&lt;BR /&gt;/usr/bin/X11/dtterm -e commandline&lt;BR /&gt;&lt;BR /&gt;i.e. spawn a terminal at the desktop (which of course must be running something like Reflection/X) and run the command in that environment.  The command line argument to -e is unquoted, i.e. the first word is the command, anything after that is an argument thereto.  Quoting appears to apply, i.e.&lt;BR /&gt;&lt;BR /&gt;/usr/bin/X11/dtterm -e command 1 "2 3" 4&lt;BR /&gt;&lt;BR /&gt;will pass the 2d argument as the string "2 3" and the 3d argument as "4".&lt;BR /&gt;&lt;BR /&gt;As is the case with utilities like cron and su, the environment is a basic one; to get the full login environment, I found this did the trick:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/X11/dtterm -e /usr/bin/sh -c '. /etc/profile; ~/.profile; command'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Frankly I'd have thought there was still a place for _restricted_ SAM in the v3 distro, that part of it was quite a neat GUI/TUI wrapper for su.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Nov 2009 02:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-customization-or-restricting-sam-user-access/m-p/4531324#M368277</guid>
      <dc:creator>Howard Bryden_3</dc:creator>
      <dc:date>2009-11-18T02:56:24Z</dc:date>
    </item>
  </channel>
</rss>

