<?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 scp does not create correct permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436982#M356579</link>
    <description>&lt;BR /&gt;When a filed is scp'ed, it has 600 permissions. when the same account does a 'touch' on the file, it has correct permissions of 751.  What's going on? &lt;BR /&gt;&lt;BR /&gt;This is on 11.23, Itanium machine.&lt;BR /&gt;&lt;BR /&gt;the source machine has correct permissions on the file.&lt;BR /&gt;&lt;BR /&gt;FWIW, the box has been recently converted to a trusted host.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Jun 2009 18:34:07 GMT</pubDate>
    <dc:creator>dictum9</dc:creator>
    <dc:date>2009-06-10T18:34:07Z</dc:date>
    <item>
      <title>scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436982#M356579</link>
      <description>&lt;BR /&gt;When a filed is scp'ed, it has 600 permissions. when the same account does a 'touch' on the file, it has correct permissions of 751.  What's going on? &lt;BR /&gt;&lt;BR /&gt;This is on 11.23, Itanium machine.&lt;BR /&gt;&lt;BR /&gt;the source machine has correct permissions on the file.&lt;BR /&gt;&lt;BR /&gt;FWIW, the box has been recently converted to a trusted host.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jun 2009 18:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436982#M356579</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2009-06-10T18:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436983#M356580</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;maybe the UMASK is different set.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Wed, 10 Jun 2009 18:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436983#M356580</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-06-10T18:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436984#M356581</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Adding the '-p' switch to 'scp' will preserve the modification and last-access timestamps along with a file's modes.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Jun 2009 18:41:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436984#M356581</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-10T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436985#M356582</link>
      <description>Are you using scp to "push" a file from your session to a remote host, or "pull" it from a remote host to you?&lt;BR /&gt;&lt;BR /&gt;When you run scp, it performs a "non-interactive login" to the remote host. Most shells will skip large parts of the session startup procedure if the session is not interactive... for example, the shell might not run /etc/profile at all. In this case, the umask of the remote end might be determined only by kernel/sshd defaults, and thus be different from the usual value.&lt;BR /&gt;&lt;BR /&gt;Most likely James's suggestion to use the "-p" option will help. If not, you may have to do some reading.&lt;BR /&gt;&lt;BR /&gt;If you're pushing the file to a remote host, find out which shell the destination account is using at the remote host, then read the man page of that shell. Pay special attention to chapters titled like "STARTUP", "INVOCATION" etc.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 10 Jun 2009 19:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436985#M356582</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-06-10T19:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436986#M356583</link>
      <description>&lt;!--!*#--&gt;&amp;gt; scp does not [...]&lt;BR /&gt;&lt;BR /&gt;In general, as with nearly all programs, what&lt;BR /&gt;scp does or does not do may depend on what&lt;BR /&gt;you tell it to do.  And if you've disclosed&lt;BR /&gt;that, I must have missed it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What's going on?&lt;BR /&gt;&lt;BR /&gt;You first.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; This is on 11.23, Itanium machine.&lt;BR /&gt;&lt;BR /&gt;_What_ is?  The client or the server?  The&lt;BR /&gt;source or the destination?  And what's at&lt;BR /&gt;the other end?</description>
      <pubDate>Wed, 10 Jun 2009 21:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436986#M356583</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-06-10T21:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436987#M356584</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;umask can be over-ridden in the sshd_config or the ssh_config file&lt;BR /&gt;&lt;BR /&gt;touch works off the user profile.&lt;BR /&gt;&lt;BR /&gt;scp is like ftp, and does not read the full user profile.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 10 Jun 2009 21:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436987#M356584</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-10T21:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436988#M356585</link>
      <description>Sorry for the split post.&lt;BR /&gt;&lt;BR /&gt;No matter what the umask, scp or sftp will not give 7 permissions on a file.&lt;BR /&gt;&lt;BR /&gt;That is because doing so creates a massive security hazard.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 10 Jun 2009 21:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436988#M356585</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-10T21:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436989#M356586</link>
      <description>Try using the switch "-p", if you still have problems check the umask on the destination server</description>
      <pubDate>Wed, 10 Jun 2009 22:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436989#M356586</guid>
      <dc:creator>UVK</dc:creator>
      <dc:date>2009-06-10T22:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436990#M356587</link>
      <description>&amp;gt;does a 'touch' on the file, it has correct permissions of 751.&lt;BR /&gt;&lt;BR /&gt;I don't see how?  touch(1) should only start with 666.  It could only be 640 and not have the "x" bits.  And I assume umask is 26.&lt;BR /&gt;$ typeset -i8 x=0&lt;BR /&gt;$ (( x = 8#751 &amp;amp; ~8#111 )); echo $x&lt;BR /&gt;8#640</description>
      <pubDate>Thu, 11 Jun 2009 02:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436990#M356587</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-11T02:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: scp does not create correct permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436991#M356588</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;scp mostly used the sshd_config file and when you login that time .profile is used&lt;BR /&gt;check you sshd_config file is there umask is set or not.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 11 Jun 2009 03:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-does-not-create-correct-permissions/m-p/4436991#M356588</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-11T03:25:33Z</dc:date>
    </item>
  </channel>
</rss>

