<?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: upload file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155053#M158271</link>
    <description>There are no filetypes in Unix. A file (other than special files like directories, devicefiles or FIFOs, etc) is simply a string of characters which have meaning only to the program which created it and programs that know how to read it. There is nothing in Unix that makes .txt )or any other ending to a filename) special. That is a PC concept, and even there, you can rename any file to have a different ending (type extension) and mess up the automatic scheduling of an appropriate tool to read/write the file.&lt;BR /&gt; &lt;BR /&gt;If you have users that are not familiar with the differences between Unix and PC's (or Mac's or mainframes, etc) it would be better that they are not allowed direct access to these machines. Instead, you can write special wrapper programs to perform the required checks and then schedule ftp from within the program after verufying the format of a file.</description>
    <pubDate>Fri, 02 Jan 2004 09:12:27 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2004-01-02T09:12:27Z</dc:date>
    <item>
      <title>upload file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155050#M158268</link>
      <description>In my HP unix 11.0 system , user can use ftp to upload any format of file to the system , how can I restrict the user can only upload a specific format of file ( eg. .txt) to the system ? thx.</description>
      <pubDate>Fri, 02 Jan 2004 02:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155050#M158268</guid>
      <dc:creator>eric_204</dc:creator>
      <dc:date>2004-01-02T02:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: upload file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155051#M158269</link>
      <description>Wrap "ftp" in a shell script and give it to the user&lt;BR /&gt;&lt;BR /&gt;I can not think of anything else now !&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Fri, 02 Jan 2004 02:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155051#M158269</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-01-02T02:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: upload file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155052#M158270</link>
      <description>Hi erik,&lt;BR /&gt;&lt;BR /&gt;I am not sure if you can restrict on file format. It looks easy to bypass this just renaming the file to txt. &lt;BR /&gt;&lt;BR /&gt;You can start with restricting the server so only specific users can access the system. ( man ftpusers) besides that you can configure ftpaccess with the ftpaccess command. This takes an extra option in the /etc/inetd.conf file in the ftp line. (-a) and you can make accounts changerooted. For a detailed description do a search on the forum. There are several threats in this subject.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 02 Jan 2004 02:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155052#M158270</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-01-02T02:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: upload file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155053#M158271</link>
      <description>There are no filetypes in Unix. A file (other than special files like directories, devicefiles or FIFOs, etc) is simply a string of characters which have meaning only to the program which created it and programs that know how to read it. There is nothing in Unix that makes .txt )or any other ending to a filename) special. That is a PC concept, and even there, you can rename any file to have a different ending (type extension) and mess up the automatic scheduling of an appropriate tool to read/write the file.&lt;BR /&gt; &lt;BR /&gt;If you have users that are not familiar with the differences between Unix and PC's (or Mac's or mainframes, etc) it would be better that they are not allowed direct access to these machines. Instead, you can write special wrapper programs to perform the required checks and then schedule ftp from within the program after verufying the format of a file.</description>
      <pubDate>Fri, 02 Jan 2004 09:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155053#M158271</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-01-02T09:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: upload file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155054#M158272</link>
      <description>In addition to everything else that's been said:  UNIX doesn't have a concept of file types, but it's not based on extension/suffix like it is in the Microsoft world.  You can use the "file" command (which reads file "type" definitions found in the /etc/magic file) to determine some things about what's in a given file.&lt;BR /&gt;&lt;BR /&gt;You could possibly embed the "file" command into a wrapper to perform one check on the type of data.  &lt;BR /&gt;&lt;BR /&gt;I also want to point out that it's possible to write a script/program for the HP server that "catches" Email and writes it to a file.  This eliminates the need for FTP.  I use this frequently for file transfer.  Check out the use of "|" in your mail aliases file (typically /etc/mail/aliases).&lt;BR /&gt;&lt;BR /&gt;Mic</description>
      <pubDate>Fri, 02 Jan 2004 22:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upload-file/m-p/3155054#M158272</guid>
      <dc:creator>Mic V.</dc:creator>
      <dc:date>2004-01-02T22:43:58Z</dc:date>
    </item>
  </channel>
</rss>

