<?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 bash as default shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640569#M43518</link>
    <description>Now, I have this:&lt;BR /&gt;&lt;BR /&gt;root@grecopr2:/# cat /etc/shells&lt;BR /&gt;/sbin/sh &lt;BR /&gt;/usr/bin/sh &lt;BR /&gt;/usr/bin/rsh &lt;BR /&gt;/usr/bin/ksh &lt;BR /&gt;/usr/bin/rksh &lt;BR /&gt;/usr/bin/csh &lt;BR /&gt;/usr/bin/keysh &lt;BR /&gt;/sbin/bash&lt;BR /&gt;root@grecopr2:/# &lt;BR /&gt;&lt;BR /&gt;root@grecopr2:/# ll /sbin/bash&lt;BR /&gt;-r-xr-xr-x   1 bin        bin         659456  4 Ene 12:51 /sbin/bash&lt;BR /&gt;root@grecopr2:/# &lt;BR /&gt;&lt;BR /&gt;Then, I change passwd and make bash (statically linked) the default shell for root. And:&lt;BR /&gt;&lt;BR /&gt;root@grecopr2:/# ftp localhost&lt;BR /&gt;Connected to localhost.&lt;BR /&gt;220 grecopr2 FTP server (Version 1.1.214.7 Thu Aug 10 09:57:38 GMT 2000) ready.&lt;BR /&gt;Name (localhost:root): root&lt;BR /&gt;530 User root access denied...&lt;BR /&gt;Login failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Again, reverting to sh, ftp works fine.</description>
    <pubDate>Tue, 08 Jan 2002 11:03:14 GMT</pubDate>
    <dc:creator>Ruben Cardenal</dc:creator>
    <dc:date>2002-01-08T11:03:14Z</dc:date>
    <item>
      <title>Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640564#M43513</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have added bash as new shell for root at my HP/UX 11.00 machines, but when someone tries to log in via ftp, access is denied to every user. Why? (If i revert to sh, all works properly)</description>
      <pubDate>Tue, 08 Jan 2002 10:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640564#M43513</guid>
      <dc:creator>Ruben Cardenal</dc:creator>
      <dc:date>2002-01-08T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640565#M43514</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First, NEVER use any shells in /usr/bin as the login shell for root because you will encounter problems in single-user mode or maintenance mode because /usr is not mounted in single-user mode. Always stick to /sbin/sh for the login shell for root.&lt;BR /&gt;&lt;BR /&gt;Second, if you want FTP to work for a specific login shell, you must include it in /etc/shells. man shells for more information.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Tue, 08 Jan 2002 10:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640565#M43514</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-08T10:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640566#M43515</link>
      <description>The following may give some insight:&lt;BR /&gt;Problem Description&lt;BR /&gt;&lt;BR /&gt;Why can I not ftp to my HP-UX 10.x system using non-root accounts?&lt;BR /&gt;&lt;BR /&gt;Solution&lt;BR /&gt;&lt;BR /&gt;If you cannot ftp to an HP-UX 10.x system when using a non-root account,&lt;BR /&gt;most likely one of two situations exists:&lt;BR /&gt;&lt;BR /&gt;   -- The user is using a non-standard shell. This may also be the&lt;BR /&gt;      case if a user is using an HP-UX 9.x shell path instead of&lt;BR /&gt;      an HP-UX 10.x shell path.&lt;BR /&gt;&lt;BR /&gt;   -- The user is listed in /etc/ftpusers, which is a file used to&lt;BR /&gt;      deny access to specific users.&lt;BR /&gt;&lt;BR /&gt;Non-Standard Shell&lt;BR /&gt;------------------&lt;BR /&gt;HP-UX 10.x systems verify the user shell of the incoming FTP user.&lt;BR /&gt;If the shell type is not returned by getusershell(3C), then the&lt;BR /&gt;"ACCESS DENIED" message is generated.&lt;BR /&gt;&lt;BR /&gt;ftpd(1M) requires that the shell for a given user be in the list returned&lt;BR /&gt;by getusershell(3C). This list is the contents of /etc/shells, or, if that&lt;BR /&gt;file does not exist, the following default list:&lt;BR /&gt;&lt;BR /&gt;     /sbin/sh&lt;BR /&gt;     /usr/bin/sh&lt;BR /&gt;     /usr/bin/rsh&lt;BR /&gt;     /usr/bin/ksh&lt;BR /&gt;     /usr/bin/rksh&lt;BR /&gt;     /usr/bin/csh&lt;BR /&gt;     /usr/bin/keysh&lt;BR /&gt;&lt;BR /&gt;To resolve this problem, do one of the following:&lt;BR /&gt;&lt;BR /&gt;   A. If you have an /etc/shells file, verify its data has not been corrupted.&lt;BR /&gt;&lt;BR /&gt;   B. If you do not have an /etc/shells file, create one. This file must&lt;BR /&gt;      list all user shells that might be used with an incoming FTP session&lt;BR /&gt;      in the format shown in the example above.  Check /etc/passwd for its&lt;BR /&gt;      list of shells for each user.&lt;BR /&gt;&lt;BR /&gt;For more information, refer to the ftpd(1M), getusershell(3C) and shells(4)&lt;BR /&gt;man pages.&lt;BR /&gt;&lt;BR /&gt;The /etc/ftpusers File&lt;BR /&gt;----------------------&lt;BR /&gt;When a user attempts to log into your system using ftp, the ftpd daemon&lt;BR /&gt;checks the /etc/ftpusers file. If the file exists, and the user's login&lt;BR /&gt;name is listed in it, ftpd denies access to the user.&lt;BR /&gt;&lt;BR /&gt;User accounts that specify a restricted login shell in /etc/passwd should&lt;BR /&gt;be listed in /etc/ftpusers, because ftpd accesses local accounts without&lt;BR /&gt;using their login shells. UUCP accounts should also be listed in&lt;BR /&gt;/etc/ftpusers.&lt;BR /&gt;&lt;BR /&gt;You can use either a text editor or SAM (HP-UX's System Administration&lt;BR /&gt;Manager) to create and edit the /etc/ftpusers file. SAM has an extensive&lt;BR /&gt;online help facility.&lt;BR /&gt;&lt;BR /&gt;Each line in /etc/ftpusers consists of a login name with no white space.&lt;BR /&gt;Following is an example /etc/ftpusers file:&lt;BR /&gt;&lt;BR /&gt;       uucp&lt;BR /&gt;       guest&lt;BR /&gt;       nobody&lt;BR /&gt;&lt;BR /&gt;For more information, refer to the ftpusers(4) man page.&lt;BR /&gt;&lt;BR /&gt;References&lt;BR /&gt;----------&lt;BR /&gt;For additional troubleshooting information, refer to the edition of&lt;BR /&gt;the manual "Installing and Administering Internet Services" that is&lt;BR /&gt;for your HP-UX system.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2002 10:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640566#M43515</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2002-01-08T10:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640567#M43516</link>
      <description>documented in shells(4) manpage, &lt;BR /&gt;add your shell to /etc/shells ?&lt;BR /&gt;&lt;BR /&gt;It is used for security, a user will be able to login (using normall ogin,&lt;BR /&gt;telnet, rlogin, ftp and so on) only if his shell is in the /etc/shells list. So&lt;BR /&gt;this is a list of trusted shells. When you install HPUX it is installed&lt;BR /&gt;automatically, if you want to add an extra non-HP shell (such as 'bash')you should edit this file manually.</description>
      <pubDate>Tue, 08 Jan 2002 10:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640567#M43516</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-01-08T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640568#M43517</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;first it is very important to use only staically linked shells in /sbin for root. Hope you have a statically linked bash placed in /sbin. If not switch back to /sbin/sh as the root shell.&lt;BR /&gt;&lt;BR /&gt;To use the bash for ftp, you have to make this shell available/valid for ftp. Have a look at man ftpd and man shells. I haven't done this so i can't give you a step by step gude.&lt;BR /&gt;&lt;BR /&gt;(Just wanted to warn you about  replacing the root's shell)&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Tue, 08 Jan 2002 10:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640568#M43517</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2002-01-08T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640569#M43518</link>
      <description>Now, I have this:&lt;BR /&gt;&lt;BR /&gt;root@grecopr2:/# cat /etc/shells&lt;BR /&gt;/sbin/sh &lt;BR /&gt;/usr/bin/sh &lt;BR /&gt;/usr/bin/rsh &lt;BR /&gt;/usr/bin/ksh &lt;BR /&gt;/usr/bin/rksh &lt;BR /&gt;/usr/bin/csh &lt;BR /&gt;/usr/bin/keysh &lt;BR /&gt;/sbin/bash&lt;BR /&gt;root@grecopr2:/# &lt;BR /&gt;&lt;BR /&gt;root@grecopr2:/# ll /sbin/bash&lt;BR /&gt;-r-xr-xr-x   1 bin        bin         659456  4 Ene 12:51 /sbin/bash&lt;BR /&gt;root@grecopr2:/# &lt;BR /&gt;&lt;BR /&gt;Then, I change passwd and make bash (statically linked) the default shell for root. And:&lt;BR /&gt;&lt;BR /&gt;root@grecopr2:/# ftp localhost&lt;BR /&gt;Connected to localhost.&lt;BR /&gt;220 grecopr2 FTP server (Version 1.1.214.7 Thu Aug 10 09:57:38 GMT 2000) ready.&lt;BR /&gt;Name (localhost:root): root&lt;BR /&gt;530 User root access denied...&lt;BR /&gt;Login failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Again, reverting to sh, ftp works fine.</description>
      <pubDate>Tue, 08 Jan 2002 11:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640569#M43518</guid>
      <dc:creator>Ruben Cardenal</dc:creator>
      <dc:date>2002-01-08T11:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding bash as default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640570#M43519</link>
      <description>Changing user shells to bash if fine, but DON'T change root's shell which must be /sbin/sh. As mentioned, in single user mode, you will have NO SHELL (and that's bad). It's important to note that bash (and other POSIX shells like ksh) have a lot more in common than they have differences. Some sysadmins with experience on other flavors of Unix may think that /sbin/sh or /usr/bin/sh are Bourne shells...not true!&lt;BR /&gt;&lt;BR /&gt;The /usr/bin/sh shell is the POSIX shell, and incoporates virtually all the coommonly requested features of ksh and bash. But because the POSIX shell incorporates more security features, some sysadmins discount it and go for some other shell. One of the security featiures is that command line recall (the ESC k incantation) doesn't work by default (true), but all that is necessary is to supply the env variable: HISTFILE (which works for bash and ksh too). Set this in /etc/profile:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;and after logging in, ESC k (and all the rest of the command line recall features) will work OK.</description>
      <pubDate>Tue, 08 Jan 2002 12:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-bash-as-default-shell/m-p/2640570#M43519</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-08T12:16:14Z</dc:date>
    </item>
  </channel>
</rss>

