<?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: Restriction on ftp conection in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881324#M751975</link>
    <description>You can allow and deny ftp in /var/adm/inetd.sec file by IP address or hostname.</description>
    <pubDate>Tue, 14 Jan 2003 15:03:07 GMT</pubDate>
    <dc:creator>Ken Hubnik_2</dc:creator>
    <dc:date>2003-01-14T15:03:07Z</dc:date>
    <item>
      <title>Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881318#M751969</link>
      <description>Hi all!&lt;BR /&gt;It's possible to perform a ftp connection from host1 to host2, but only with user1?&lt;BR /&gt;Namely, if the user2 try to connect from host1, the connection is refused; but user2 is able to perform ftp connections from an other host (host3).&lt;BR /&gt;TIA&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jan 2003 11:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881318#M751969</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-14T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881319#M751970</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are on 11.0 you need define /etc/ftpd/ftpaccess, inside of this file you must be include users that couldn't be ftp connection, each line in this file must contain just user name. For detailed info:&lt;BR /&gt;#man ftpusers&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 14 Jan 2003 11:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881319#M751970</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-01-14T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881320#M751971</link>
      <description>I known this option, but this not resolve my problem, i want to restrict the user1 to perform ftp from a particular host (host1) an only from here to the server (host2).&lt;BR /&gt;TIA</description>
      <pubDate>Tue, 14 Jan 2003 11:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881320#M751971</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-14T11:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881321#M751972</link>
      <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;Try with de /var/adm/inetd.sec ftp "allow|deny" service configuration.&lt;BR /&gt;#man inetd.sec&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 14 Jan 2003 11:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881321#M751972</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-01-14T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881322#M751973</link>
      <description>I still don't understand your goal.  Here are some of the ways I can interpret your goal:&lt;BR /&gt;&lt;BR /&gt;1) You want to make it so that user1 on host1 can ftp to host2, but not to any other host.&lt;BR /&gt;&lt;BR /&gt;This sounds impossible, unless you are severely restricting user1's access to a shell.&lt;BR /&gt;&lt;BR /&gt;2) You want to allow user1 on host1 to use an ftp client, but disallow any other user on host1 from using an ftp client.&lt;BR /&gt;&lt;BR /&gt;Again, this is client-side ftp restrictions, which will be impossible if the user can run a shell (since they could then install their own client, etc.).&lt;BR /&gt;&lt;BR /&gt;3) On host2, you want to allow user1 from host1, but disallow user2 from host1.&lt;BR /&gt;&lt;BR /&gt;As Jose points out, this is accomplished via ftpusers(4).&lt;BR /&gt;&lt;BR /&gt;But this method won't work if you want host2 to accept ftp connections from user2 on host3.  If this is what you need, you may be in trouble.  I don't see a solution to it off the top of my head, at any rate.  wu-ftpd (HP-UX's standard ftp server, as of late) supports denying hosts, and it supports denying users, but I don't think it supports denying specific users of specific hosts.  [Someone please correct me if I'm wrong.]&lt;BR /&gt;&lt;BR /&gt;Maybe if you tell us *why* you want to do this, we can be of more assistance.&lt;BR /&gt;&lt;BR /&gt;-Tim</description>
      <pubDate>Tue, 14 Jan 2003 13:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881322#M751973</guid>
      <dc:creator>Tim Maletic</dc:creator>
      <dc:date>2003-01-14T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881323#M751974</link>
      <description>Hi Tim &amp;amp; Jose Mari!&lt;BR /&gt;A lot of thanks!&lt;BR /&gt;Tim as you says my problem is the point 3 of your exposition.&lt;BR /&gt;We want to create an ftp users with restrictions by machine, directory access, etc. for a punctual purpose. But for this test we must to enable the access to our server from an other host out of "habitual network". We want no access from this external hosts with an other user that the specified. We desire to controle this. We have checked ftpaccess, ftpd, ftp an others commands but...&lt;BR /&gt;No ideas?&lt;BR /&gt;TIA</description>
      <pubDate>Tue, 14 Jan 2003 14:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881323#M751974</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-14T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881324#M751975</link>
      <description>You can allow and deny ftp in /var/adm/inetd.sec file by IP address or hostname.</description>
      <pubDate>Tue, 14 Jan 2003 15:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881324#M751975</guid>
      <dc:creator>Ken Hubnik_2</dc:creator>
      <dc:date>2003-01-14T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881325#M751976</link>
      <description>Well, if you only want one user on this external host to access your server, create an account for them, and only give that user the password.&lt;BR /&gt;&lt;BR /&gt;If the problem is that your external user's username conflicts with a local user's username, then create a new one for the external user.&lt;BR /&gt;&lt;BR /&gt;You're not talking about anonymous FTP, are you?&lt;BR /&gt;&lt;BR /&gt;Are you worried about restricting access to your server by a mere password?  (If so, consider sshd, sftp, and public key authentication.)&lt;BR /&gt;&lt;BR /&gt;I still don't feel I've grasped your problem.  Am I getting closer?</description>
      <pubDate>Tue, 14 Jan 2003 19:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881325#M751976</guid>
      <dc:creator>Tim Maletic</dc:creator>
      <dc:date>2003-01-14T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881326#M751977</link>
      <description>OK, i create the username with anonymous ftp or ftp restrictions, but the user has an other proper account (his account) and for this punctual action i don't want he use it from the commented host. The user has two accounts (user1 &amp;amp; user2) and one host (host1) but he must use only the account with restrictions (for this punctual action). &lt;BR /&gt;I think that isn't possible.&lt;BR /&gt;I don't know it's full explained...&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 15 Jan 2003 07:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881326#M751977</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-15T07:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881327#M751978</link>
      <description>Just to re-capatelize;&lt;BR /&gt;&lt;BR /&gt;Use /var/adm/inetd.sec to deny/allow ip-adresses or subnets for ftp :&lt;BR /&gt;&lt;BR /&gt;ftp allow 1.2.3.4 2.3.4.45-68 host1 host2&lt;BR /&gt;&lt;BR /&gt;Use /etc/ftpd/ftpaccess to set rules :&lt;BR /&gt;class   local   real,guest,anonymous *.domain 0.0.0.0&lt;BR /&gt;class   remote  real,anonymous *&lt;BR /&gt;class   remote  guest  /etc/ftpd/ftp_in.allow ## Put in your ip-adres from host1&lt;BR /&gt;## Don't know if you can define class --&amp;gt; user1 here.&lt;BR /&gt;&lt;BR /&gt;Use /etc/ftpusers to allow only these users :&lt;BR /&gt;user1 Should not be in the file, as he is allowed to ftp!! root should be.&lt;BR /&gt;&lt;BR /&gt;Use /etc/passwd to only allow ftp for this user:&lt;BR /&gt;user1:*:1001:401:User1 ftp acount:/ftp/ftp_in:/usr/bin/false&lt;BR /&gt;&lt;BR /&gt;I think these are about the options you have. Maybe this makes it some easier to see what you can and what you can't. I confirm an easier use of allow/deny user/hosts would be preffered.&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Wed, 15 Jan 2003 12:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881327#M751978</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-01-15T12:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881328#M751979</link>
      <description>Maybe a bit off topic, but all of these restrictions are available if you configure sftp instead of ftp.  You can do configuration by user and by host or a combination.  (personally I prefer scp because it's easier to script)&lt;BR /&gt;&lt;BR /&gt;As several of the responses indicate, you may be able to rig something using regular ftp (well, sort of).  However, each of these methods fundamentally rely on ip-based authentication (claiming to be user1 from host2 is sufficient to 'prove' that you are user1 from host2).  ip-based authentication is fundamentally easy to beat, so if you don't trust the other user on your network to play nicely, then all of your efforts are in vain anyway.&lt;BR /&gt;&lt;BR /&gt;scp/sftp use a fundamentally more secure authentication technique in addition to being more configurable.  hp-ux secure shell would need to be installed on host1, host2, and host3, and if you want more details on configuring these, there are lots of people on this forum who can help there too.&lt;BR /&gt;&lt;BR /&gt;Hope that helps</description>
      <pubDate>Wed, 15 Jan 2003 13:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881328#M751979</guid>
      <dc:creator>Keith Buck</dc:creator>
      <dc:date>2003-01-15T13:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881329#M751980</link>
      <description>This functionality is also available with tcp wrappers.  It is the big brother to inetd.sec, and allows user@host rules as well as host rules.&lt;BR /&gt;&lt;BR /&gt;I used to use TCP wrappers in HP-UX 10, but this was 3 years ago.  Perhaps tcp wrappers has been updated for 11.x of HP-UX.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 15 Jan 2003 13:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881329#M751980</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-01-15T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction on ftp conection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881330#M751981</link>
      <description>Hi all!&lt;BR /&gt;Thank you very much!&lt;BR /&gt;The functionality Shannon comments, the combination user@host rule, is the solution. It is no easy to implement, but...&lt;BR /&gt;Bye!</description>
      <pubDate>Wed, 15 Jan 2003 14:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restriction-on-ftp-conection/m-p/2881330#M751981</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-15T14:46:23Z</dc:date>
    </item>
  </channel>
</rss>

