<?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: SUDO in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988087#M123809</link>
    <description>Read the readme file and look at the documentation and man pages for the /etc/sudoers file.  That is where you configure sudo and set up privileges for users.&lt;BR /&gt;&lt;BR /&gt;You could start here:&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/index.html" target="_blank"&gt;http://www.courtesan.com/sudo/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and look at the documentation links on this page.</description>
    <pubDate>Wed, 04 Jun 2003 02:45:51 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2003-06-04T02:45:51Z</dc:date>
    <item>
      <title>SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988086#M123808</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I have install sudo utility in hpux11.00,How&lt;BR /&gt;do I give privilege normal user to do super&lt;BR /&gt;user task.&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;&lt;BR /&gt;Ashan</description>
      <pubDate>Wed, 04 Jun 2003 02:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988086#M123808</guid>
      <dc:creator>ashan</dc:creator>
      <dc:date>2003-06-04T02:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988087#M123809</link>
      <description>Read the readme file and look at the documentation and man pages for the /etc/sudoers file.  That is where you configure sudo and set up privileges for users.&lt;BR /&gt;&lt;BR /&gt;You could start here:&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/index.html" target="_blank"&gt;http://www.courtesan.com/sudo/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and look at the documentation links on this page.</description>
      <pubDate>Wed, 04 Jun 2003 02:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988087#M123809</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-06-04T02:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988088#M123810</link>
      <description>You need to edit the /etc/sudoers file using the /usr/local/sbin/visudo utility. Do not use any other utility to make the changes.&lt;BR /&gt;&lt;BR /&gt;example1 :&lt;BR /&gt;&lt;BR /&gt;# sudoers file.&lt;BR /&gt;#&lt;BR /&gt;# This file MUST be edited with the 'visudo' command as root.&lt;BR /&gt;#&lt;BR /&gt;# See the man page for details on how to write a sudoers file.&lt;BR /&gt;#&lt;BR /&gt;# This setting may be a security risk.  Osamu&lt;BR /&gt;&lt;BR /&gt;# Host alias specification - not using&lt;BR /&gt;Host_Alias     LAN = 168.192.0.0/255.255.0.0&lt;BR /&gt;# User alias specification - not using, but using group&lt;BR /&gt;User_Alias     STAFF = admin&lt;BR /&gt;User_Alias     src=admin, debian, osamu&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;Cmnd_Alias     FILEUTILS = /bin/chown, /bin/chmod, /bin/chgrp,                            /bin/mount, /bin/umount, /usr/bin/cdrecord&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias     DEBUTILS  = /usr/bin/dpkg,                            /usr/bin/apt-get&lt;BR /&gt;                           &lt;BR /&gt;Cmnd_Alias     EDITORS   = /bin/vi,                            /bin/emacs&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root ALL = (ALL) ALL&lt;BR /&gt;%staff  ALL = (ALL) NOPASSWD: ALL&lt;BR /&gt;%src ALL = (ALL) NOPASSWD: FILEUTILS, DEBUTILS, EDITORS &lt;BR /&gt;&lt;BR /&gt;Defaults:%staff  !lecture&lt;BR /&gt;Defaults:%src  !lecture&lt;BR /&gt;Defaults:%staff  !authenticate&lt;BR /&gt;#Defaults:admin  !authenticate&lt;BR /&gt;&lt;BR /&gt;Further examples can be obtained here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/man/sudoers.html" target="_blank"&gt;http://www.courtesan.com/sudo/man/sudoers.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael&lt;BR /&gt;"When I have trouble spelling, it's called fat finger syndrome" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/man/sudoers.html" target="_blank"&gt;http://www.courtesan.com/sudo/man/sudoers.html&lt;/A&gt;</description>
      <pubDate>Wed, 04 Jun 2003 02:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988088#M123810</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-06-04T02:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988089#M123811</link>
      <description>Hi,&lt;BR /&gt;Below is sudo configuration file and bb is my&lt;BR /&gt;normal user,I have login as bb and try to run&lt;BR /&gt;sudo bb&lt;BR /&gt;&lt;BR /&gt;$ sudo - bb&lt;BR /&gt;Sorry, sudo must be setuid root.&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;I don't know my login is correct, please advice me.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ashan&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;# sudoers file.&lt;BR /&gt;#&lt;BR /&gt;# This file MUST be edited with the 'visudo' command as root.&lt;BR /&gt;#&lt;BR /&gt;# See the sudoers man page for the details on how to write a sudoers file.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# Host alias specification&lt;BR /&gt;&lt;BR /&gt;Hosti_Alias LAN = 168.232.1.250/255.255.255.0&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;&lt;BR /&gt;User_Alias USERS = bb&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias FILEUTILS = /usr/bin/ll, /usr/bin/moun, /usr/bin/umount, /usr/bin/shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;# Defaults specification&lt;BR /&gt;Defaults:%users !|ecture&lt;BR /&gt;Defaults:%users !|authenticate&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root    ALL=(ALL) ALL&lt;BR /&gt;%users  ALL=(ALL) NOPASSWD: FILEUTILS&lt;BR /&gt;&lt;BR /&gt;# Uncomment to allow people in group wheel to run all commands&lt;BR /&gt;#%wheel ALL=(ALL)       ALL&lt;BR /&gt;&lt;BR /&gt;# Same thing without a password&lt;BR /&gt;#%wheel ALL=(ALL)       NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;# Samples&lt;BR /&gt;# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom</description>
      <pubDate>Wed, 04 Jun 2003 05:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988089#M123811</guid>
      <dc:creator>ashan</dc:creator>
      <dc:date>2003-06-04T05:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988090#M123812</link>
      <description>The usage should be as follows:&lt;BR /&gt;&lt;BR /&gt;$ id&lt;BR /&gt;bb&lt;BR /&gt;$ sudo umount /cdrom&lt;BR /&gt;&lt;BR /&gt;Also it seems that you have incorrect permissions for the sudo binary.&lt;BR /&gt;They should be like this:&lt;BR /&gt;---s--x--x &lt;BR /&gt;&lt;BR /&gt;To fix it as root:&lt;BR /&gt;# chmod 4111 sudo&lt;BR /&gt;&lt;BR /&gt;Try again&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael&lt;BR /&gt;"When I have trouble spelling, it's called fat finger syndrome"</description>
      <pubDate>Wed, 04 Jun 2003 05:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988090#M123812</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-06-04T05:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988091#M123813</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;Still I am get this mesg, something messing in the configuration..?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ashan&lt;BR /&gt;&lt;BR /&gt;ashan@uxadmin $Jun  4 15:12:52 uxadmin sudo:       bb : parse error in /opt/sudo/etc/sudoers/sudoers near&lt;BR /&gt;line 9 ; TTY=pts/tb ; PWD=/ ; USER=root ; COMMAND=umount&lt;BR /&gt;&lt;BR /&gt;$ id&lt;BR /&gt;uid=103(bb) gid=20(users)&lt;BR /&gt;$ sudo umount&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sudoers file: syntax error, line 9 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sudoers file: syntax error, line 19 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sudoers file: syntax error, line 20 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sudoers file: syntax error, line 21 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;sudo: parse error in /opt/sudo/etc/sudoers/sudoers near line 9&lt;BR /&gt;$&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jun 2003 06:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988091#M123813</guid>
      <dc:creator>ashan</dc:creator>
      <dc:date>2003-06-04T06:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988092#M123814</link>
      <description>Hi Ashan&lt;BR /&gt;&lt;BR /&gt;U have to edit the sudoers file using /opt/sudo/sbin/visudo. when u run the above command it will edit sudoers and give the user "bb" in user previlages as &lt;BR /&gt;bb ALL=ALL or&lt;BR /&gt;bb ALL=/usr/sbin/mount,/usr/sbin/umount,/usr/bin/su ( and many more )&lt;BR /&gt;In user aliases u have to specify the &lt;USER name=""&gt;=bb&lt;BR /&gt;Save the file.&lt;BR /&gt;for /opt/sudo/sbin/sudo file set "set uid bit" like&lt;BR /&gt;chmod u+s /opt/sudo/sbin/sudo&lt;BR /&gt;To execute the commands as sudo user u have to type the command as /opt/sudo/sbin/sudo &lt;FULLPATH&gt; &lt;BR /&gt;ex. /opt/sudo/sbin/sudo /usr/bin/su &lt;BR /&gt;For the first time when u execute the command it will asks for the password confirmation of the user( i.e. bb) after submition, the command will be executed. The default duration for the session is 5 min. This can be changed or u can set without password while editing the visudoers file&lt;BR /&gt;&lt;BR /&gt;for more info see the man page&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;Kiran&lt;BR /&gt;&lt;/FULLPATH&gt;&lt;/USER&gt;</description>
      <pubDate>Wed, 04 Jun 2003 07:23:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988092#M123814</guid>
      <dc:creator>Kiran Kumar Aekabote</dc:creator>
      <dc:date>2003-06-04T07:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988093#M123815</link>
      <description>There are syntax errors in your sudoers file.&lt;BR /&gt;&lt;BR /&gt;Hosti_Alias LAN = 168.232.1.250/255.255.255.0 &lt;BR /&gt;&lt;BR /&gt;should be &lt;BR /&gt;&lt;BR /&gt;Host_Alias LAN = 168.232.1.250/255.255.255.0 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias FILEUTILS = /usr/bin/ll, /usr/bin/moun, /usr/bin/umount, /usr/bin/shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/bin/moun should be /usr/bin/mount&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Be sure to edit the sudoers file with visudo.  This will perform syntax checks on your file and help you correct problems with it before saving it.</description>
      <pubDate>Wed, 04 Jun 2003 12:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988093#M123815</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-06-04T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988094#M123816</link>
      <description>There are syntax errors in your sudoers file.&lt;BR /&gt;&lt;BR /&gt;Hosti_Alias LAN = 168.232.1.250/255.255.255.0 &lt;BR /&gt;&lt;BR /&gt;should be &lt;BR /&gt;&lt;BR /&gt;Host_Alias LAN = 168.232.1.250/255.255.255.0 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias FILEUTILS = /usr/bin/ll, /usr/bin/moun, /usr/bin/umount, /usr/bin/shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/bin/moun should be /usr/bin/mount&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Be sure to edit the sudoers file with visudo.  This will perform syntax checks on your file and help you correct problems with it before saving it.</description>
      <pubDate>Wed, 04 Jun 2003 12:01:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/2988094#M123816</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-06-04T12:01:34Z</dc:date>
    </item>
  </channel>
</rss>

