[HPADM] Re: FTPD UMASK



Marshall, Richard wrote:

Hello:

I have a group to which several users are assigned, the umask for these users is set 00 and the current ftpd umask is set to 027 (default). I know how to change the ftpd umask value, but not sure what it should be changed to in order to produce the following:

User wants all files ftp’ed from remote host to local host user accounts to be u=rw,g=rw permissions

Correct me if I'm wrong. The security and umask settings can best be calculated in ocatal and/or binary format. I always drop down to binary mode for the settings. The wished settings are rw-rw----, in binary (triplets) 110.110.000.

With the umask, you can force the 0-s. Hence to force that, the umask in binarie must be 001.001.111. These triplets transfer to octal as 0117. As far as I know, the umask is in octal so there you have it. Be noted, an octal value is always preceded by a '0', just as a hex value is preceded by '0x'.

I might be off, but the sticky bits and such are also part of this security settings. If you want to force them too, the numbers just get larger: To force no sticky bits, the bin number becomes 011.001.001.111 and the octal 03117. There are more bits but I donnot know them by head. And this larger umask value might be ignored, specially in the ftp-server, because they are ignored at all.


CBee


--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx

Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)



Relevant Pages

  • Re: umask
    ... but it only works for the bash settings. ... Christian Ruffer schrieb: ... i want to change the default umask permanently for one user. ...
    (Debian-User)
  • Re: umask
    ... I can't belive it is so hard to set spezial user settings vor the bash. ... i want to change the default umask permanently for one user. ... I change the .bashrc file. ...
    (Debian-User)
  • Re: external USB Drive
    ... >>inherit the GUI user. ... >>umask settings in the config file where the drive is mounted. ... The masking settings are inverse from the settings permissions. ...
    (Fedora)
  • Re: Question about umask
    ... reasons. ... a umask of 022 will create directories with 755 but files with 644 ... The settings in /etc/bashrc are overridden by later settings. ...
    (Fedora)
  • Re: sticky bits, owner,
    ... sticky bit settings, ... for which I don't want them to have 0002 as umask. ... The ACL approach seems to be the more effective one, ...
    (comp.os.linux.security)