<?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 ftp question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405156#M201605</link>
    <description>i have a user in the passwd and his shell is /bin/sh. i want to to connect to the system with ftp and i receive the message access denied. I change the shell user in passwd with /usr/bin/sh then and i can connect to ftp qwth no problem.&lt;BR /&gt;&lt;BR /&gt;What´s the diference between use /usr/bin/sh and /bin/sh?&lt;BR /&gt;&lt;BR /&gt;Why ftp did not work with /bin/sh ?&lt;BR /&gt;&lt;BR /&gt;i don´t find information about the restriction of ftp using /sin/sh.&lt;BR /&gt;&lt;BR /&gt;i hope do you undertand the question.&lt;BR /&gt;&lt;BR /&gt;than</description>
    <pubDate>Thu, 21 Oct 2004 10:26:56 GMT</pubDate>
    <dc:creator>Javier Ortiz Guajardo</dc:creator>
    <dc:date>2004-10-21T10:26:56Z</dc:date>
    <item>
      <title>ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405156#M201605</link>
      <description>i have a user in the passwd and his shell is /bin/sh. i want to to connect to the system with ftp and i receive the message access denied. I change the shell user in passwd with /usr/bin/sh then and i can connect to ftp qwth no problem.&lt;BR /&gt;&lt;BR /&gt;What´s the diference between use /usr/bin/sh and /bin/sh?&lt;BR /&gt;&lt;BR /&gt;Why ftp did not work with /bin/sh ?&lt;BR /&gt;&lt;BR /&gt;i don´t find information about the restriction of ftp using /sin/sh.&lt;BR /&gt;&lt;BR /&gt;i hope do you undertand the question.&lt;BR /&gt;&lt;BR /&gt;than</description>
      <pubDate>Thu, 21 Oct 2004 10:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405156#M201605</guid>
      <dc:creator>Javier Ortiz Guajardo</dc:creator>
      <dc:date>2004-10-21T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405157#M201606</link>
      <description>Hi Javier,&lt;BR /&gt;&lt;BR /&gt;Check the file &lt;BR /&gt;&lt;BR /&gt;# cat /etc/shells&lt;BR /&gt;&lt;BR /&gt;add the shells you would like to use for your user.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 21 Oct 2004 10:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405157#M201606</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-10-21T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405158#M201607</link>
      <description>You most likely do not have /sbin/sh listed in the /etc/shells file.&lt;BR /&gt;&lt;BR /&gt;If it is not there, then you will not be able to use FTP.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 10:31:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405158#M201607</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-10-21T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405159#M201608</link>
      <description>Shell location problem may be making this problem here.&lt;BR /&gt;&lt;BR /&gt;can /etc/shells&lt;BR /&gt;&lt;BR /&gt;whereis sh&lt;BR /&gt;based on this, try to to set on /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;use vipw / vi to edit the shell or chsh command to change shell.</description>
      <pubDate>Thu, 21 Oct 2004 10:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405159#M201608</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T10:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405160#M201609</link>
      <description>i have HP-UX 11.0, and the file /etc/shell is not found.&lt;BR /&gt;&lt;BR /&gt;The man ftpd said this &lt;BR /&gt;  ftpd authenticates users according to three rules:&lt;BR /&gt;  +  The user must have a standard shell returned by getusershell(). &lt;BR /&gt;&lt;BR /&gt;Wich one is the standar shell /usr/bin/sh or /bin/sh? and Why?&lt;BR /&gt;&lt;BR /&gt;Maybe, iÂ´m requesting too much..thank....so much</description>
      <pubDate>Thu, 21 Oct 2004 10:51:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405160#M201609</guid>
      <dc:creator>Javier Ortiz Guajardo</dc:creator>
      <dc:date>2004-10-21T10:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405161#M201610</link>
      <description>/etc/shells&lt;BR /&gt;&lt;BR /&gt;# ls -la /etc/shells&lt;BR /&gt;-rw-r--r--   1 root       sys             96 Aug 21  2003 /etc/shells&lt;BR /&gt;&lt;BR /&gt;most commen used are the: &lt;BR /&gt;/sbin/sh for root (usr is not mounted in single user mode)&lt;BR /&gt;&lt;BR /&gt;for normal users:&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;&lt;BR /&gt;Ps, No you are not requesting to mutch</description>
      <pubDate>Thu, 21 Oct 2004 10:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405161#M201610</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-10-21T10:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405162#M201611</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check and see if you a /etc/shells file. There is a possibility /etc/shells file exist and /usr/bin/sh is there, whereas /bin/sh is not available. Add /bin/sh in that file and then try.&lt;BR /&gt;&lt;BR /&gt;Do "man shells" for more info.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 11:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405162#M201611</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-10-21T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405163#M201612</link>
      <description>It is shells not shell. You can get information about that file as,&lt;BR /&gt;&lt;BR /&gt; man shells -- man page&lt;BR /&gt; cat shells -- contents of that file.&lt;BR /&gt;&lt;BR /&gt;If you set the correct shell path only, user ftp execution on that shell.&lt;BR /&gt;&lt;BR /&gt; whereis sh / locate sh will give location sh&lt;BR /&gt; which sh too.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 11:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405163#M201612</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405164#M201613</link>
      <description>how can i do for create the file /etc/shells ?</description>
      <pubDate>Thu, 21 Oct 2004 12:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405164#M201613</guid>
      <dc:creator>Javier Ortiz Guajardo</dc:creator>
      <dc:date>2004-10-21T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405165#M201614</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't have a /etc/shells file, create it using vi,&lt;BR /&gt;&lt;BR /&gt;vi /etc/shells&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add each shells that you are using in a seperate line, save it and exit. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 12:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405165#M201614</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-10-21T12:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: ftp question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405166#M201615</link>
      <description>There is no shell called /bin/sh. In fact, there is no directory called /bin (or /lib). These directories were changed more than a decade ago with the industry standard V.4 filesystem layout. Solaris and other Unix flavors are similar. The reason that you can run /bin/sh is that /bin is not a directory but a symbolic link, or in HP-UX terminology, a transition link. The symlink makes all the old code continue to work although 10 years is a long time...&lt;BR /&gt; &lt;BR /&gt;There is no /etc/shells file by default in HP-UX. That means that ftpd (the server daemon) will use getusershell to determine the validity of the shell. From the man page for getusershell: &lt;BR /&gt; &lt;BR /&gt;"If /etc/shells does not exist or is not readable, getusershell() returns the following standard system shells:&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;as if they were contained in /etc/shells."&lt;BR /&gt; &lt;BR /&gt;As you can see, /bin/sh is not there. Change all your users to use /usr/bin/sh, the correct location for the POSIX shell. /sbin/sh is also the POSIX shell but with archived libraries so it will also run in single user mode. Otherwise, /sbun/sh and /usr/bin/sh are the same.&lt;BR /&gt; &lt;BR /&gt;NOTE: Every user can change their own shell with the command: chsh as in:&lt;BR /&gt; &lt;BR /&gt;chsh my_login /usr/bin/sh&lt;BR /&gt; &lt;BR /&gt;This command changes the passwd file without using vi.</description>
      <pubDate>Thu, 21 Oct 2004 13:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-question/m-p/3405166#M201615</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-10-21T13:48:33Z</dc:date>
    </item>
  </channel>
</rss>

