<?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: no shell account in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153897#M319065</link>
    <description>If you use ssh the user will need a shell account.&lt;BR /&gt;&lt;BR /&gt;If it's only for sending and receiving files then "ftp" or "sftp" is probably simpler.  You can restrict the user to which ever directories you want and give them an "ftpshell" as their shell too.</description>
    <pubDate>Mon, 03 Mar 2008 08:08:26 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2008-03-03T08:08:26Z</dc:date>
    <item>
      <title>no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153896#M319064</link>
      <description>I want to create a no shell account for an user. He will be using this account to connect to the server using ssh to send &amp;amp; recieve files. He will be having access to only 2 dirs for sending &amp;amp; recieving files.&lt;BR /&gt;&lt;BR /&gt;Any way to create a no shell account.&lt;BR /&gt;Please help.</description>
      <pubDate>Mon, 03 Mar 2008 07:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153896#M319064</guid>
      <dc:creator>mjos</dc:creator>
      <dc:date>2008-03-03T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153897#M319065</link>
      <description>If you use ssh the user will need a shell account.&lt;BR /&gt;&lt;BR /&gt;If it's only for sending and receiving files then "ftp" or "sftp" is probably simpler.  You can restrict the user to which ever directories you want and give them an "ftpshell" as their shell too.</description>
      <pubDate>Mon, 03 Mar 2008 08:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153897#M319065</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2008-03-03T08:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153898#M319066</link>
      <description>create a user and edit the /etc/passwd file using command&lt;BR /&gt;&lt;BR /&gt;#vipw&lt;BR /&gt;&lt;BR /&gt;and in shell area replace the existing shell by /usr/bin/ftpshell.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153898#M319066</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-03-03T08:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153899#M319067</link>
      <description>I dont find any ftpshell inside /usr/bin&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/usr/bin&lt;BR /&gt;# ll ftp*&lt;BR /&gt;-r-xr-xr-x   1 bin        bin         374364 Nov 10  2006 ftp&lt;BR /&gt;-r-xr--r--   1 bin        bin          42828 Nov 10  2006 ftpcount&lt;BR /&gt;-r-xr--r--   1 bin        bin          48244 Nov 10  2006 ftprestart&lt;BR /&gt;-r-xr--r--   1 bin        bin          56828 Nov 10  2006 ftpshut&lt;BR /&gt;lrwxr-xr-x   1 root       bin             10 Nov 16 14:16 ftpwho -&amp;gt; ./ftpcount&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:57:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153899#M319067</guid>
      <dc:creator>mjos</dc:creator>
      <dc:date>2008-03-03T08:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153900#M319068</link>
      <description>follow the procedures&lt;BR /&gt;&lt;BR /&gt;1. Create a bogus shell for users that will only have FTP access to the system:&lt;BR /&gt; &lt;BR /&gt;a. vi /usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;b. exit 0&lt;BR /&gt;&lt;BR /&gt;c. chmod 555 /usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;d. chown bin:bin /usr/bin/ftpshell&lt;BR /&gt; &lt;BR /&gt;2. Create an /etc/shells file:&lt;BR /&gt;&lt;BR /&gt;a. vi /etc/shells&lt;BR /&gt;&lt;BR /&gt;b. Include these lines in the file:&lt;BR /&gt;&lt;BR /&gt;/sbin/sh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/rsh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/rksh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/keysh&lt;BR /&gt;&lt;BR /&gt;/bin/sh&lt;BR /&gt;&lt;BR /&gt;/bin/ksh&lt;BR /&gt;&lt;BR /&gt;/bin/csh&lt;BR /&gt;&lt;BR /&gt;/bin/rsh&lt;BR /&gt;&lt;BR /&gt;/bin/rksh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ftpshell</description>
      <pubDate>Mon, 03 Mar 2008 09:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153900#M319068</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-03-03T09:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153901#M319069</link>
      <description>Thanks....I did the same thing...when I am trying to sftp to the server with that user ...I am getting the following error&lt;BR /&gt;&lt;BR /&gt;Connection has been unexpectedly closed. Server sent command exit status 1.&lt;BR /&gt;&lt;BR /&gt;# cat /usr/bin/ftpshell&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;# cat /etc/shells&lt;BR /&gt;/bin/sh&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/bin/ksh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;/usr/bin/ftpshell&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 10:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153901#M319069</guid>
      <dc:creator>mjos</dc:creator>
      <dc:date>2008-03-03T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153902#M319070</link>
      <description>this is not for sftp.&lt;BR /&gt;&lt;BR /&gt;this is for ftp login.</description>
      <pubDate>Mon, 03 Mar 2008 10:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153902#M319070</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-03-03T10:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153903#M319071</link>
      <description>Thanks Ahsan...but my need is that the user should be able to do sftp transfers &amp;amp; not ftp. I am able to do sftp using any other account</description>
      <pubDate>Mon, 03 Mar 2008 10:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153903#M319071</guid>
      <dc:creator>mjos</dc:creator>
      <dc:date>2008-03-03T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153904#M319072</link>
      <description>I'm pretty sure that you can't do what you want with sftp.  sftp is only ftp over ssh and ssh in a replacement for rlogin/remsh. &lt;BR /&gt;&lt;BR /&gt;There are proper ftp clients that support encryption and will also allow you to restrict what the user can see/do and remove the requirement for a shell.&lt;BR /&gt;&lt;BR /&gt;"oftp" is one though and I believe there is an "eftp" as well. &lt;BR /&gt;&lt;BR /&gt;Alternatively, use ftp and encrypt the files before transferring.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 11:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153904#M319072</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2008-03-03T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153905#M319073</link>
      <description>sftp doesn't read /etc/shells for anything, but it does expect a shell to invoke the sftp-server binary to handle the server's end of the connection. One slightly hackish way to provide sftp without shell access is to set the shell to sftp-server (I don't have the full path handy, but it's part of the ssh package). You can also use scponly or rssh as the shell, both of which can be used to allow scp as well as sftp.</description>
      <pubDate>Mon, 03 Mar 2008 17:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153905#M319073</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-03-03T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: no shell account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153906#M319074</link>
      <description>Have you considered effectively putting the ssh connection into a restricted directory subset.  If I remember correctly there are tools supplied with the HP ssh package which make it relatively easy to setup such a user.  However password changes and maintenance may be an issue and I didn't investigate using public keys etc.  I did setup a test account along the lines of what you wanted.</description>
      <pubDate>Tue, 04 Mar 2008 02:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-shell-account/m-p/4153906#M319074</guid>
      <dc:creator>David Woodroffe</dc:creator>
      <dc:date>2008-03-04T02:26:46Z</dc:date>
    </item>
  </channel>
</rss>

