<?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: Adding a line  to Sudo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342465#M190901</link>
    <description>Now, that I have added the suggested lines, the error is: &lt;BR /&gt;&lt;BR /&gt;user:  error in /etc/sudoers, line 18; TTY=pts/1 ; PWD= /home/user; USER=root&lt;BR /&gt;&lt;BR /&gt;I am login as the user and the path I enter is:  sudo /dev/dsk/c1t2d0 /home/user/SD_CDROM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The account was done with "users" as the primary group and the group account has the root permissions same as the lp, shutdown, etc......&lt;BR /&gt;&lt;BR /&gt;See if you give me any suggestions.....</description>
    <pubDate>Wed, 28 Jul 2004 08:11:26 GMT</pubDate>
    <dc:creator>Nancy_32</dc:creator>
    <dc:date>2004-07-28T08:11:26Z</dc:date>
    <item>
      <title>Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342461#M190897</link>
      <description>I created the users accounts.  Now I need to let them mount and umount cdrom with sudo.  What sould be the line to be use in this case.  My device path is /dev/dsk/c1t2t0.  Directory to mount it should be /SD_CDROM.  &lt;BR /&gt;&lt;BR /&gt;Thank you. &lt;BR /&gt;Nancy L.</description>
      <pubDate>Tue, 27 Jul 2004 13:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342461#M190897</guid>
      <dc:creator>Nancy_32</dc:creator>
      <dc:date>2004-07-27T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342462#M190898</link>
      <description># vi /etc/sudoers&lt;BR /&gt;Cmnd_Alias   MOUNT_UNMOUNT=/usr/sbin/mount,/usr/sbin/umount&lt;BR /&gt;&lt;BR /&gt;user1 ALL=MOUNT_UNMOUNT&lt;BR /&gt;user2 ALL=MOUNT_UNMOUNT&lt;BR /&gt;#</description>
      <pubDate>Tue, 27 Jul 2004 13:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342462#M190898</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-07-27T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342463#M190899</link>
      <description>I would do it more like this. I don't think you really want users being able to mount and unmount anything they want to try. :) And having the User_Alias makes administering the sudoers file a little tidier.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;User_Alias MOUNT_USERS=user1,user2&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias MOUNT_CMNDS=/usr/sbin/mount /dev/dsk/c1t2t0 /SD_CDROM,/usr/sbin/umount /SD_CDROM&lt;BR /&gt;&lt;BR /&gt;MOUNT_USERS ALL=MOUNT_CMNDS</description>
      <pubDate>Tue, 27 Jul 2004 14:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342463#M190899</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-07-27T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342464#M190900</link>
      <description>Depending on your version of sudo, as to where the file is and the right tool to edit 'sudoders'&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;# /opt/sudo/sbin/visudo&lt;BR /&gt;&lt;BR /&gt;# /usr/local/sbin/visudo&lt;BR /&gt;&lt;BR /&gt;Don't edit the file directly. Jeff's options are a very good guide.</description>
      <pubDate>Tue, 27 Jul 2004 17:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342464#M190900</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-07-27T17:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342465#M190901</link>
      <description>Now, that I have added the suggested lines, the error is: &lt;BR /&gt;&lt;BR /&gt;user:  error in /etc/sudoers, line 18; TTY=pts/1 ; PWD= /home/user; USER=root&lt;BR /&gt;&lt;BR /&gt;I am login as the user and the path I enter is:  sudo /dev/dsk/c1t2d0 /home/user/SD_CDROM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The account was done with "users" as the primary group and the group account has the root permissions same as the lp, shutdown, etc......&lt;BR /&gt;&lt;BR /&gt;See if you give me any suggestions.....</description>
      <pubDate>Wed, 28 Jul 2004 08:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342465#M190901</guid>
      <dc:creator>Nancy_32</dc:creator>
      <dc:date>2004-07-28T08:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342466#M190902</link>
      <description>Hi Nancy,&lt;BR /&gt;&lt;BR /&gt;You must enter the command exactly as it is in the sudoers file. If there are multiple entries the command must match one of them.&lt;BR /&gt;&lt;BR /&gt;EX:&lt;BR /&gt;&lt;BR /&gt;sudo /usr/sbin/mount /dev/dsk/c1t2t0 /SD_CDROM&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 28 Jul 2004 08:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342466#M190902</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-07-28T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line  to Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342467#M190903</link>
      <description>Guys, &lt;BR /&gt;&lt;BR /&gt;I thank you for your help.  I was totally sucessful with all your help.  Also, another option I added to the user was the following: &lt;BR /&gt;&lt;BR /&gt;Script file called - /etc/mountcd &lt;BR /&gt;#!/bin/sh&lt;BR /&gt;sudo /usr/sbin/mount /dev/dsk/c1t2d0 /CDROM&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;file - /etc/umountcd &lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;sudo /usr/sbin/umount /CDROM &lt;BR /&gt;&lt;BR /&gt;Changed permissions to /etc/mountcd and /etc/umountcd &lt;BR /&gt;chmod +X /etc/mountcd &lt;BR /&gt;chmod +X /etc/umountcd &lt;BR /&gt;&lt;BR /&gt;It worked fine both ways.  &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;Nancy L.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2004 10:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-line-to-sudo/m-p/3342467#M190903</guid>
      <dc:creator>Nancy_32</dc:creator>
      <dc:date>2004-07-28T10:25:14Z</dc:date>
    </item>
  </channel>
</rss>

