From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Brehl, Blake" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: ftp and umask Date: Fri, 14 Oct 2005 11:28:08 -0700 Message-ID: <57E10DFCFC307B43AE8E93A06FAF8E4E01BA1C77@moh-exc-006.main.intgin.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1129314604 3994 80.91.229.2 (14 Oct 2005 18:30:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2005 18:30:04 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Oct 14 20:29:59 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1EQUIc-000315-95 for gotm-tru64-unix-managers@gmane.org; Fri, 14 Oct 2005 20:28:58 +0200 Original-Received: (qmail 29529 invoked by uid 49509); 14 Oct 2005 18:28:45 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29514 invoked by uid 49501); 14 Oct 2005 18:28:45 -0000 Original-Received: from 160.91.4.119 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.119):SA:0(-2.6/5.0):. Processed in 1.383044 secs); 14 Oct 2005 18:28:45 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute1.cind.ornl.gov (160.91.4.119) by sws1.ornl.gov with SMTP; 14 Oct 2005 18:28:43 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IOD00LAG4NVZJ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Oct 2005 14:28:43 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-1x9 #31038) id <0IOD002024NQO8@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Oct 2005 14:28:42 -0400 (EDT) Original-Received: from MAILHOST.US.ANRITSU.COM (mailhost.us.anritsu.com [12.151.36.153]) by emroute1.cind.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IOD00MA74NP9Q@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Oct 2005 14:28:38 -0400 (EDT) Original-Received: from MOH-EXC-004.main.intgin.net ([172.26.1.117]) by MAILHOST.US.ANRITSU.COM with Microsoft SMTPSVC(6.0.3790.211); Fri, 14 Oct 2005 11:27:16 -0700 Original-Received: from moh-exc-006.main.intgin.net ([172.26.1.119]) by MOH-EXC-004.main.intgin.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 14 Oct 2005 11:28:35 -0700 Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: Blake.Brehl@anritsu.com X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: SUMMARY: ftp and umask Thread-Index: AcXQ5ItG2Fe7Ca74TRyLD0ret48W2AAB6atA Content-class: urn:content-classes:message X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 14 Oct 2005 18:28:35.0623 (UTC) FILETIME=[16AD9B70:01C5D0ED] Xref: news.gmane.org gmane.os.tru64.managers:8601 Archived-At: Original below. FTP doesn't read the .profile. Found the SITE command supported by the ftpd, which solves the immediate problem. ftp> binary ftp> site umask 002 200 UMASK set to 002 (was 022) ftp> put somefile Also found HPUX supports calling the ftpd in inetd.conf with a call -u 022, and the client session inherits the umask of the account running the ftpd. Didn't find the -u in the Tru64 man pages and didn't try it. It may be possible to run ftpd out of another account. Best Regards, Blake -----Original Message----- Tru64UNIX V5.1a sp3 =20 trying to ftp from one Alpha to another and have the permissions arrive as 664. Doesn't seem to matter what the source file permissions are, the target always arrives as 644. The target server /etc/profile umask is 022, the account used for ftp has 002 umask in the .profile. Touching a file becomes the desired 664. Any ideas? =20 Best Regards, =20 Blake Brehl Sys Admin/DBA Anritsu Company United States Morgan Hill, CA blake.brehl@anritsu.com This message is intended for the use of the individual/entity to whom it = is addressed. This message may contain privileged information exempt from= disclosure. If you are not the addressee, distribution or copying of th= is message, or dissemination of the information contained herein, is str= ictly prohibited. If you should receive this message in error, please des= troy it, or return to sender. Thank You.=20