<?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 How to enable sudo login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913884#M284971</link>
    <description>hi Friends,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Can any one tell me how to enable sudo login ?&lt;BR /&gt;&lt;BR /&gt;Mridul&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 15 Dec 2006 11:57:35 GMT</pubDate>
    <dc:creator>Mridul Dutta</dc:creator>
    <dc:date>2006-12-15T11:57:35Z</dc:date>
    <item>
      <title>How to enable sudo login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913884#M284971</link>
      <description>hi Friends,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Can any one tell me how to enable sudo login ?&lt;BR /&gt;&lt;BR /&gt;Mridul&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2006 11:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913884#M284971</guid>
      <dc:creator>Mridul Dutta</dc:creator>
      <dc:date>2006-12-15T11:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable sudo login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913885#M284972</link>
      <description>Hi Mridul,&lt;BR /&gt;&lt;BR /&gt;    You have to install software called SUDO. You can get this on the net.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;DK</description>
      <pubDate>Fri, 15 Dec 2006 12:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913885#M284972</guid>
      <dc:creator>Deepak Kulkarni</dc:creator>
      <dc:date>2006-12-15T12:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable sudo login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913886#M284973</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. Download 'sudo' package from &lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p12/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p12/&lt;/A&gt;&lt;BR /&gt;2. use swinstall to install the package&lt;BR /&gt;3. configure /etc/sudoers &lt;BR /&gt;   use /usr/local/sbin/visudo to edit the file&lt;BR /&gt;&lt;BR /&gt;Use this link.. u would get a better undertstangin how to configure sudo after installing it&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://linsec.ca/syshardening/sudo.php" target="_blank"&gt;http://linsec.ca/syshardening/sudo.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, Alex&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2006 12:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913886#M284973</guid>
      <dc:creator>Jacob Alexander</dc:creator>
      <dc:date>2006-12-15T12:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable sudo login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913887#M284974</link>
      <description>Download and setup sudo.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Do a search for it and download it, then install it.&lt;BR /&gt;&lt;BR /&gt;This can help you set it up:&lt;BR /&gt;&lt;BR /&gt;Now that sudo has been installed, you should find a file called /etc/sudoers. &lt;BR /&gt;&lt;BR /&gt;Before you start editing this file, you need to use a program called visudo, included in the sudo package. This edits provides security checks, parses for errors, and protects against multiple edits of the file. &lt;BR /&gt;&lt;BR /&gt;Visudo takes the editor which is stored in the environment variable VISUAL so to pick an editor, for instance pico, while running a bash shell, enter the command: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;export VISUAL="pico -w"&lt;BR /&gt;Now, simply type: visudo and it should open /etc/sudoers in that editor. &lt;BR /&gt;&lt;BR /&gt;In /etc/sudoers, you should see something like this: &lt;BR /&gt;&lt;BR /&gt;NOTE: You may see other things, this is what is in Debian's install. There are many options which I do not go over here, for instance how to override defaults. This guide is meant to be a source for creating a basic setup of sudo. You can find anything I did not include in "man sudoers" and "man sudo" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#Host alias specification&lt;BR /&gt;&lt;BR /&gt;#User alias specification&lt;BR /&gt;&lt;BR /&gt;#Cmnd alias specification&lt;BR /&gt;&lt;BR /&gt;#User privilege specification&lt;BR /&gt;root ALL=(ALL) ALL&lt;BR /&gt;Here's a sample file, which is not real, but as I walk you through it, you should be able to understand how to setup this file. &lt;BR /&gt;&lt;BR /&gt;Aliases are ways of referring to information by an (usually)easier name. They are sort of like the short hand way of writing something. In our case, aliases can point to 1 piece of information, or can point to groups of information as you'll see below. &lt;BR /&gt;&lt;BR /&gt;Host alias specification &lt;BR /&gt;&lt;BR /&gt;This section makes aliases for hosts. The syntax is: &lt;BR /&gt;&lt;BR /&gt;Host_Alias ALIASFORHOSTNAMES = hostname1, hostname2, etc... &lt;BR /&gt;&lt;BR /&gt;These will allow you to make an alias for sets of hostnames (Or even a single one.) &lt;BR /&gt;&lt;BR /&gt;The two lines below make an alias called "DJNET," which refers to hostnames, djbox1 and djbox2 and an alias called "LINUXHELP," which will refer to hostnames lingroup1,lingroup2. &lt;BR /&gt;&lt;BR /&gt;These hostnames should be referenced in /etc/hosts and you for the hostnames you may use IP addresses, hostnames in /etc/hosts, or other hostnames which may not be found in /etc/hosts. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host_Alias  DJNET = djbox1, djbox2&lt;BR /&gt;Host_Alias  LINUXHELP = lingroup1,lingroup2&lt;BR /&gt;User alias specification &lt;BR /&gt;&lt;BR /&gt;This section, like the Host Alias section basically is a way of grouping users. &lt;BR /&gt;&lt;BR /&gt;The syntax is: &lt;BR /&gt;&lt;BR /&gt;User_Alias USERGROUPNAMEALIAS = user1, user2, etc... &lt;BR /&gt;&lt;BR /&gt;The below lines make 3 groups, ADMINS, PARTTIME, and LINUXGROUP, each containing different members. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;User_Alias  ADMINS = joe, bill, jake&lt;BR /&gt;User_Alias    PARTTIME = jim, jeff, mike&lt;BR /&gt;User_Alias LINUXGROUP = lyte, SirPlaya&lt;BR /&gt;Cmnd alias specification &lt;BR /&gt;&lt;BR /&gt;This section is a way of grouping commands together. The syntax is: &lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias COMMANDALIASNAME = command1,command2,etc... &lt;BR /&gt;&lt;BR /&gt;If you'd like to specify arguments, you can use [] and wildcards to make commands. For instance, one of the below aliases, USERS includes has /usr/sbin/adduser [A-z]*, which means that they can run /usr/sbin/adduser and must have an argument of a 1 or more letters. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias  BROWSE = /bin/ls, /bin/cd, /bin/cat&lt;BR /&gt;Cmnd_Alias  KILL = /bin/kill&lt;BR /&gt;Cmnd_Alias  USERS = /usr/sbin/adduser [A-z]*,/usr/sbin/userdel -r [A-z]*&lt;BR /&gt;User privilege specification &lt;BR /&gt;&lt;BR /&gt;This is the User privilege section. This is where you give out the special priveleges to users, or user aliases using the aliases we have created above. &lt;BR /&gt;&lt;BR /&gt;The syntax is: &lt;BR /&gt;&lt;BR /&gt;USER HOST=COMMANDS Where USER can be either a user name or user alias, as well as HOST and COMMANDS. &lt;BR /&gt;&lt;BR /&gt;The below line allows root access to everything... this shouldn't be a problem as root can do whatever he/she wants anyway. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root ALL=(ALL) ALL&lt;BR /&gt;This next line will allow the users specified in the ADMINS alias (joe, bill, and jake) and give them access to everything as well. &lt;BR /&gt;&lt;BR /&gt;ADMINS ALL=ALL &lt;BR /&gt;&lt;BR /&gt;This next line will show you another interesting feature of sudo. This allows the users in the PARTTIME alias (jim,jeff,mike) to do all of the commands listed in USERS,KILL,and BROWSE aliases on all servers. In addition to that, they may run /usr/bin/passwd followed by a 1 letter word or more(username of password to change) but the last option says that they CANNOT change root's password. ! is used to represent the word "NOT" &lt;BR /&gt;&lt;BR /&gt;PARTTIME ALL=USERS,KILL,BROWSE,/usr/bin/passwd [A-z]*, !/usr/bin/passwd root &lt;BR /&gt;&lt;BR /&gt;This next line allows user "djg" access to everything on the hosts listed in the alias DJNET(djbox1 and djbox2). It IS my network after all. :) &lt;BR /&gt;&lt;BR /&gt;djg DJNET=ALL &lt;BR /&gt;&lt;BR /&gt;Finally, this last line allows the users listed in the alias LINUXGROUP (lyte and SirPlaya) access to ALL commands as user "www" and to all of the commands listed in the aliases KILL,USERS, and BROWSE on the servers listed in the alias LINUXHELP(lingroup1 and lingroup2). &lt;BR /&gt;&lt;BR /&gt;To specify that commands can be run as a user other than root, put the username in () in front of the commands. If you need to use root after that, you will have to specify it as seen below. &lt;BR /&gt;&lt;BR /&gt;LINUXGROUP LINUXHELP=(www) ALL (root) KILL,USERS,BROWSE &lt;BR /&gt;&lt;BR /&gt;Now that /etc/sudoers is configured properly, save it and exit visudo. If there are any errors, it should tell you. &lt;BR /&gt;&lt;BR /&gt;USING SUDO &lt;BR /&gt;&lt;BR /&gt;To list what you are allowed to do with sudo: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;djg@localhost:~ $ sudo -l&lt;BR /&gt;Password:   (Enter your password here)&lt;BR /&gt;User djg may run the following commands on this host:&lt;BR /&gt;(Here will be what you are allowed to do. It will follow the form of /etc/sudoers) &lt;BR /&gt;&lt;BR /&gt;To use a privelege: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;djg@localhost:~ sudo -u usertoruncommandas commandhere&lt;BR /&gt;Password: (Enter your password here)&lt;BR /&gt;(The command will then execute if everything is ok)&lt;BR /&gt;Flag -u will default to user root so if you're running a command as root, it's not necessary, simply use: sudo commandhere. &lt;BR /&gt;&lt;BR /&gt;In some cases, it may not prompt you for a password. By default, sudo will allow you to go 5 minutes without entering a sudo command before it asks you for a password again. Again, as I said before, I don't go over how to change that in this guide. Everything you'll need is in the man pages. At some point, I may add that section to this guide. &lt;BR /&gt;&lt;BR /&gt;Now you should have a fully working sudo package and now users can have special priveleges. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2006 12:37:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913887#M284974</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-12-15T12:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable sudo login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913888#M284975</link>
      <description>Mridul,&lt;BR /&gt;&lt;BR /&gt;Good Morning!,&lt;BR /&gt;&lt;BR /&gt;You can download the sudo from this link and need to install and configure:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gratisoft.us/sudo/download.html" target="_blank"&gt;http://www.gratisoft.us/sudo/download.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check out the readme file also:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gratisoft.us/sudo/readme.html" target="_blank"&gt;http://www.gratisoft.us/sudo/readme.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Fri, 15 Dec 2006 15:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913888#M284975</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-12-15T15:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable sudo login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913889#M284976</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Just download the sudo software and configure it. configure the sudoers file.&lt;BR /&gt;&lt;BR /&gt;sp</description>
      <pubDate>Fri, 15 Dec 2006 18:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-enable-sudo-login/m-p/3913889#M284976</guid>
      <dc:creator>Sp4admin</dc:creator>
      <dc:date>2006-12-15T18:18:44Z</dc:date>
    </item>
  </channel>
</rss>

