<?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: useradd and default shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756660#M258571</link>
    <description>When you use the -s option with the useradd command, you are able to specify the shell.&lt;BR /&gt;&lt;BR /&gt;'useradd -s /bin/ksh ...'&lt;BR /&gt;&lt;BR /&gt;example snippet</description>
    <pubDate>Wed, 22 Mar 2006 11:38:01 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2006-03-22T11:38:01Z</dc:date>
    <item>
      <title>useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756659#M258570</link>
      <description>Has anybody managed to get useradd to use a sensible shell (e.g. /usr/bin/sh) for the default shell (/sbin/sh) when creating a user.&lt;BR /&gt;&lt;BR /&gt;The manual page for useradd (1M) states that the shell can be set as a default, but then contradicts itself when it describes the parameters.&lt;BR /&gt;&lt;BR /&gt;Mangling the /etc/default/useradd file also failed to have any effect.</description>
      <pubDate>Wed, 22 Mar 2006 11:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756659#M258570</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2006-03-22T11:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756660#M258571</link>
      <description>When you use the -s option with the useradd command, you are able to specify the shell.&lt;BR /&gt;&lt;BR /&gt;'useradd -s /bin/ksh ...'&lt;BR /&gt;&lt;BR /&gt;example snippet</description>
      <pubDate>Wed, 22 Mar 2006 11:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756660#M258571</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-03-22T11:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756661#M258572</link>
      <description>Thanks, but I already knew that one :-)&lt;BR /&gt;&lt;BR /&gt;What I want was a way to set the default shell that useradd uses when one isn't supplied on the command line.&lt;BR /&gt;&lt;BR /&gt;It looks like useradd is set up to support it (like the RHEL version of useradd) but it doesn't work.</description>
      <pubDate>Wed, 22 Mar 2006 11:56:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756661#M258572</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2006-03-22T11:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756662#M258573</link>
      <description>Hi David:&lt;BR /&gt;&lt;BR /&gt;Build a a wrapper script around the 'useradd' that sets the default shell argument to your choice and while passing the remaining arguments as is.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 22 Mar 2006 12:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756662#M258573</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-22T12:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756663#M258574</link>
      <description>Reviewing the man page for useradd, setting the default option for shell (-s) is not available. &lt;BR /&gt;&lt;BR /&gt;useradd -D  does not have the -s available. It is this -D switch that sets the defaults in the /etc/default/useradd file</description>
      <pubDate>Wed, 22 Mar 2006 12:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756663#M258574</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-03-22T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756664#M258575</link>
      <description>I noticed that, but the section on -D states that you can supply a shell to it (which is like the Linux version of useradd).&lt;BR /&gt;&lt;BR /&gt;I suspect this is a weird bug on HP-UX, or they they never fully implemented the default saving. It's strange as it would be useful and not too difficult to implement. (I suppose it's the same reason why /sbin/sh is the default shell.)&lt;BR /&gt;&lt;BR /&gt;I can't use a wrapper as it's an external program that creates the accounts, plus I never like altering any thing in a package (because as soon as you patch it all breaks).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Mar 2006 13:08:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756664#M258575</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2006-03-22T13:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756665#M258576</link>
      <description>Hi,&lt;BR /&gt;a possbile workaround id to write a script to chnage the shell for the user just created by chsh command.&lt;BR /&gt;Just my .002$.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 23 Mar 2006 04:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756665#M258576</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-03-23T04:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756666#M258577</link>
      <description>You can set default values for useradd with useradd -D command. Once set, those are used as default. Like follows.&lt;BR /&gt;&lt;BR /&gt;useradd -D -s /usr/bin/ksh&lt;BR /&gt;Check it now.&lt;BR /&gt;&lt;BR /&gt;useradd -D</description>
      <pubDate>Thu, 23 Mar 2006 04:34:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756666#M258577</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-23T04:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756667#M258578</link>
      <description>/sbin/sh is the default which used by useradd in hp-ux. You can change the execution of useradd as,&lt;BR /&gt;&lt;BR /&gt;alias useradd='useradd -s /usr/bin/sh'&lt;BR /&gt;&lt;BR /&gt;like that. When you execute useradd it will use /usr/bin/sh as shell type for that user.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Thu, 23 Mar 2006 04:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756667#M258578</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-23T04:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756668#M258579</link>
      <description>You can also prepare a file /etc/default/useradd. In this file you can put following and these are taken as default values.&lt;BR /&gt;&lt;BR /&gt;#default useradd options&lt;BR /&gt;HOMEDIR /home&lt;BR /&gt;GROUPID 20&lt;BR /&gt;INACT -1&lt;BR /&gt;EXPIRE&lt;BR /&gt;CHOWN_HOMEDIR no&lt;BR /&gt;SHELL /usr/bin/ksh</description>
      <pubDate>Thu, 23 Mar 2006 05:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756668#M258579</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-23T05:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: useradd and default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756669#M258580</link>
      <description>RAC: that's what I was trying to do (tested both). Unfortunately neither works on HP-UX 11.00.&lt;BR /&gt;&lt;BR /&gt;This may be an 11.11 or 11.20 feature only :-(</description>
      <pubDate>Thu, 23 Mar 2006 09:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-and-default-shell/m-p/3756669#M258580</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2006-03-23T09:55:06Z</dc:date>
    </item>
  </channel>
</rss>

