* umask argument & running .login for ftp session
@ 1996-03-21 5:00 Chris Little
0 siblings, 0 replies; only message in thread
From: Chris Little @ 1996-03-21 5:00 UTC (permalink / raw)
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
+++++++++++++++++++++++++++++++++++++++
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-03-21 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-21 5:00 umask argument & running .login for ftp session Chris Little
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox