From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2b4997e1b2b7724e,start X-Google-Attributes: gidfee84,public From: Chris Little Subject: umask argument & running .login for ftp session Date: 1996/03/21 Message-ID: <31510EF1.2157@cho.ge.com>#1/1 X-Deja-AN: 143596131 content-type: text/plain; charset=us-ascii organization: GE Fanuc Automation mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (WinNT; I) On our DEC Alpha running OSF1 3.2, I have a restricted user set up for ftp access; i.e. it's only purpose is to allow processes on other machines to ftp files to its home directory. Other users on the DEC Alpha need full access to these files. Problem: The files are created with a protection mask of -rw-r--r--. Other users cannot work with these files. I attempted to place the umask command in the .login for this restricted user, but found out that an ftp login does not run the .login file. Also, I'm having difficulty with the umask argument. In manpages, I read and I quote: "The value of each specified digit is subtracted from the corresponding ``digit'' specified by the system for the creation of a file (see creat(2)). For example, the command umask 022 removes group and others write permission (files normally created with mode 777 become mode 755; files created with mode 666 become mode 644)." My question is, what if you want something "greater" than system default; e.g. I want to use umask to change the file creation mask from -rw-r--r-- to -rwerwe---. I want to "add", not subtract. Any input on either of these subjects would be greatly appreciated. Please e-mail me diredctly. Thanks in advance for your help. Chris -- +++++++++++++++++++++++++++++++++++++++ Chris Little, Oracle DBA & SAP Basis GE Fanuc Automation North America, Inc. Phone: (804) 978-5945 Fax: 978-6942 E_mail: little_c@cho000.dnet.ge.com +++++++++++++++++++++++++++++++++++++++