[SunHELP] umask
DAUBIGNE Sebastien - BOR
sunhelp at sunhelp.org
Thu Oct 25 08:34:02 CDT 2001
Actually "umask" shell command is only activated whenever=20
a user logs in and spawn a shell. Ftd does not.
From "man ftpd" :
[...]
in.ftpd's umask (which it uses to create files during PUT
operations) may be adjusted by adding the line
UMASK=3Dnnn
to /etc/default/ftpd.
[...]
Note that it will apply to all users ftp sessions.
You can however use native ("quote") FTP commands to force=20
it on a per-user basis, if the FTP implementation allows the=20
SITE command (HPUX's ftpd does, Solaris's ftpd does not).
Here is some example of an ftp session to an HPUX host :
[...]
ftp> quote SITE umask 022
200 UMASK set to 022 (was 027)
[...]
---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr <mailto:sebastien.daubigne at sema.fr> - (+33)
(0)5.57.26.56.36
Sema Global Services - AFM/DW/Pessac
-----Message d'origine-----
De: Devrim Yilmaz (Garanti Teknoloji)
[SMTP:DevrimY at garanti.com.tr]
Date: jeudi 25 octobre 2001 12:36
=C0: 'sunhelp at sunhelp.org'
Objet: [SunHELP] umask
Hi friends;=20
I use "umask" for directory and file permissions but when i use ftp
for upload operations, "umask" does not work. Is there any way to make =
it
work?
Thx and regards,=20
dEVRim-=20
_______________________________________________ SunHELP maillist -
SunHELP at sunhelp.org http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list