<?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: ftp user in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772279#M78809</link>
    <description>The way I've done this in the past (probably not the best way) was to create a small script ('ftpsh') which just had 'echo "You arn't allowed to log in"'; exit' in it, and used that as a shell for the user.&lt;BR /&gt;&lt;BR /&gt;This fooled the FTP server into thinking they had a shell available (as you can't use /bin/false as the wu-ftpd doesn't allow an FTP login), and doesn't allow them to log in via telnet etc.</description>
    <pubDate>Thu, 25 Jul 2002 06:34:53 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2002-07-25T06:34:53Z</dc:date>
    <item>
      <title>ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772278#M78808</link>
      <description>Hi there,&lt;BR /&gt;i want to create a user that can only ftp from a remote unix machine to linux, nothing else. &lt;BR /&gt;How can this be done? &lt;BR /&gt;Using Redhat 7.2.&lt;BR /&gt;Thanks in advance..&lt;BR /&gt;Tarek</description>
      <pubDate>Thu, 25 Jul 2002 06:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772278#M78808</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-07-25T06:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772279#M78809</link>
      <description>The way I've done this in the past (probably not the best way) was to create a small script ('ftpsh') which just had 'echo "You arn't allowed to log in"'; exit' in it, and used that as a shell for the user.&lt;BR /&gt;&lt;BR /&gt;This fooled the FTP server into thinking they had a shell available (as you can't use /bin/false as the wu-ftpd doesn't allow an FTP login), and doesn't allow them to log in via telnet etc.</description>
      <pubDate>Thu, 25 Jul 2002 06:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772279#M78809</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-07-25T06:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772280#M78810</link>
      <description>HI Tarek,&lt;BR /&gt;You can create a chroot directory where ftp will work, and create the passwd file in this new environnement.&lt;BR /&gt;Or You can use another a specific software which manage it's own users ! (may be proftpd ?)&lt;BR /&gt;&lt;BR /&gt;hope this help&lt;BR /&gt;BEnoit</description>
      <pubDate>Thu, 25 Jul 2002 07:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772280#M78810</guid>
      <dc:creator>benoit Bruckert</dc:creator>
      <dc:date>2002-07-25T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772281#M78811</link>
      <description>I haven't understood your answers very well.&lt;BR /&gt;I don't want to create scripts or some stuff like this, just add a user with ftp permissions. I think this can be done, probably by putting as user shell nologin or something similar but i don't know exactly how.&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 25 Jul 2002 13:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772281#M78811</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-07-25T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772282#M78812</link>
      <description>Tarek,&lt;BR /&gt;yes this is possible, basically make sure a false shell is listed in /etc/shells and when you create a user just make sure they have the false shell, e.g; /etc/ftponly shell.  &lt;BR /&gt;&lt;BR /&gt;after that you have to enable wu-ftpd in /etc/xinetd.d dir.&lt;BR /&gt;&lt;BR /&gt;Then at some base dir (root dir for your ftpusers), make sure dir bin and etc are created. Under etc you will have two file group and passwd. The format for group is:&lt;BR /&gt;groupname:x:gid:&lt;BR /&gt;&lt;BR /&gt;for passwd is:&lt;BR /&gt;username:*:uid:gid:::&lt;BR /&gt;&lt;BR /&gt;The content of bin dir are:&lt;BR /&gt;ls command and other command you want your ftpusers to use. Under RH you should be able to just copy the /bin/ls to here provided it was compiled statically. I hope this helps.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2002 17:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772282#M78812</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-07-25T17:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772283#M78813</link>
      <description>I haven't any false shell in /etc/shells file, do i have to create any?? How? Just creating an empty file?&lt;BR /&gt;I haven't understood very well the two directories i have to create, bin and etc. As I undertood, I have to create the two directories under root's home dir, right?&lt;BR /&gt;But why? And i have to create one more passwd and group file?</description>
      <pubDate>Mon, 29 Jul 2002 07:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772283#M78813</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-07-29T07:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: ftp user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772284#M78814</link>
      <description>ok, for the shell, let say you wan to use /etc/ftponly as the false shell, just add an entry in /etc/shell for /etc/ftponly; the reason it's call a false shell is bec. it really doesn't exist and there user can not telnet or ssh in directly; they can only ftp into your server.&lt;BR /&gt;&lt;BR /&gt;For the etc and bin dir, you need them bec. of security purpose, all the files under bin are suppose to statically compile and all files under etc  only have entries for ftpusers. These dir should be located under your home ftp servers bec. when user ftp into your box they cannot change dir above your ftp home dir and therefore they do not have access to /etc/group, /etc/passwd, and ls. e.g: let say you make /home/ftpusers as your home dir for all your ftpusers, then /home/ftpusers/pub as the pub dir, when ftp user log into your box they will see /home/ftpusers as '/' and they can't cd obove /home/ftpusers.</description>
      <pubDate>Mon, 29 Jul 2002 13:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-user/m-p/2772284#M78814</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-07-29T13:55:28Z</dc:date>
    </item>
  </channel>
</rss>

