<?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: control access to sudo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583912#M230321</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;vi ,rm &amp;amp; cp are always available to all users for acting on the files they have permissions to play with &amp;amp; should not be put to sudoer. If you put these to sudoer of a normal user then obviously as he is executing vi through sudo &amp;amp; it does not count for arguments (here filename) it will access the file specified in argument with previledge of root.&lt;BR /&gt;&lt;BR /&gt;Putting logs somewhere else will also not this problem because there are so many other files in system which a nornal user is not supposed to even open them.&lt;BR /&gt;&lt;BR /&gt;So plan the commands properly which you want to put in sudoers for indivisual users.&lt;BR /&gt;&lt;BR /&gt;Also you can not keep track of what the changes were done to file after editing. Your logs will only say the file edited by this user at this time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Feel free to revert if still stucked.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
    <pubDate>Fri, 15 Jul 2005 23:36:12 GMT</pubDate>
    <dc:creator>Devender Khatana</dc:creator>
    <dc:date>2005-07-15T23:36:12Z</dc:date>
    <item>
      <title>control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583911#M230320</link>
      <description>Hi all,&lt;BR /&gt;      I like to use sudo for sysadmin purpose , instead of direct root login ..&lt;BR /&gt;But i could see , if i give excute permission for vi , rm , cp .( simple commands which are needed frequently used by sysadmin ) the user who have right to execute sudo , can delete/alter the sudo log or /etc/suduers itself !!.&lt;BR /&gt;Is there any way to control this... &lt;BR /&gt;One possible way is to keep the logs in a remote server...&lt;BR /&gt;Is there any otherway , with which we can control access to a particular file ?( suduers should not alter specific files )?&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2005 23:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583911#M230320</guid>
      <dc:creator>sujith_2</dc:creator>
      <dc:date>2005-07-15T23:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583912#M230321</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;vi ,rm &amp;amp; cp are always available to all users for acting on the files they have permissions to play with &amp;amp; should not be put to sudoer. If you put these to sudoer of a normal user then obviously as he is executing vi through sudo &amp;amp; it does not count for arguments (here filename) it will access the file specified in argument with previledge of root.&lt;BR /&gt;&lt;BR /&gt;Putting logs somewhere else will also not this problem because there are so many other files in system which a nornal user is not supposed to even open them.&lt;BR /&gt;&lt;BR /&gt;So plan the commands properly which you want to put in sudoers for indivisual users.&lt;BR /&gt;&lt;BR /&gt;Also you can not keep track of what the changes were done to file after editing. Your logs will only say the file edited by this user at this time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Feel free to revert if still stucked.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Fri, 15 Jul 2005 23:36:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583912#M230321</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-07-15T23:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583913#M230322</link>
      <description>So how should I go ahead to implement a secured system with more than one/two system administrators ?.</description>
      <pubDate>Fri, 15 Jul 2005 23:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583913#M230322</guid>
      <dc:creator>sujith_2</dc:creator>
      <dc:date>2005-07-15T23:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583914#M230323</link>
      <description>Sujith,&lt;BR /&gt;well you can track who sudoed to root through the logs and with more than one system admins you have something called mutual trust.&lt;BR /&gt;&lt;BR /&gt;DP</description>
      <pubDate>Fri, 15 Jul 2005 23:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583914#M230323</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2005-07-15T23:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583915#M230324</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What and all do you expect your system administrators to work? You really can not track of events completely. Morover you can have track when who did what by viewing the logs.&lt;BR /&gt;&lt;BR /&gt;The real purpose of sudo is to distribute responsibilities of sys admin. But again one type of job is subjected to by done by one administrator only. Something like SAM restricted could also help if you can achive these jobs using SAM.&lt;BR /&gt;&lt;BR /&gt;You will have to have faith on your administrators atleast.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Jul 2005 00:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583915#M230324</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-07-16T00:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583916#M230325</link>
      <description>&lt;BR /&gt;Giving sudo access for cp, rm, vi is as good as giving empty root password.&lt;BR /&gt;&lt;BR /&gt;Because with sudo rm the person can simply delete /. With sudo vi the person can modify any files (including passwd) to suite is needs.&lt;BR /&gt;&lt;BR /&gt;Try to avoid these through sudo. One workaround to this problem is: if you are very sure about what files and directories the person can copy, delete and edit then, create a simple shell script menu which will be executed as root. &lt;BR /&gt;&lt;BR /&gt;The person whenever logs in will be presented with this menu, and all he has access to is type the option number for the task he wants to do and script will do for him. &lt;BR /&gt;&lt;BR /&gt;If that is not possible, then here is another method: you can configure sudo to execute a command only if it has specified arguments list. The user can execute sudo only with this command line argument list and nothing else. check man sudoers for this option. By the way this option is available on my linux box (FC4) i dont know about HPUX. I am sorry if it is not there&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Sat, 16 Jul 2005 01:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583916#M230325</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-07-16T01:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: control access to sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583917#M230326</link>
      <description>You may also want to take a look at the new Role-Based Access Controls, &lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5991-0709/ch01s01.html" target="_blank"&gt;http://docs.hp.com/en/5991-0709/ch01s01.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The command "privrun" is similar to sudo, with similar issues, but is shipped/supported as part of HP-UX.  RBAC/Privrun is also more flexible.</description>
      <pubDate>Mon, 18 Jul 2005 07:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-access-to-sudo/m-p/3583917#M230326</guid>
      <dc:creator>Robert Fritz</dc:creator>
      <dc:date>2005-07-18T07:31:54Z</dc:date>
    </item>
  </channel>
</rss>

