Hyperion took 2 years to build: “Disney Animation…

Hyperion took 2 years to build: “Disney Animation was developing their own new production renderer from scratch.” fxguide.com/featured/disne…

Posted in Tweets | Comments Off on Hyperion took 2 years to build: “Disney Animation…

Using GECOS & PAM for custom umask settings, incl via Chroot SFTP

The PAM module “pam_umask” (installed by default in latest Debian Linux) is very useful for setting user-by-user umask permissions that even work in the constrained/restrictive (for settings) “SFTP Chroot” environment.

The chroot environment of SFTP as provided by SSH is very restrictive in terms of the normal means in Linux for changing the default umask for a user logged in via SFTP and chrooted to a specific directory tree (which can be the common case with SFTP users), so the standard Linux means of setting umask (eg: .bashrc or profile files or other shell-based means of changing umask upon login) don’t or won’t work for chrooted SFTP users.

In order to change the default umask (for example: from 0022 to 0002 for default group write umask) for a chrooted SFTP user, the mechanism that still can affect this is the PAM sub-system of Linux, which is specifically enabled in the SSH server configuration by default.
PAM provides a “pam_umask” module (installed in Debian Linux by default) which needs to be enabled for the SSH server’s login process and this is done in the file: /etc/pam.d/sshd by adding the following line at the top of this file:

session optional pam_umask.so

The above just enables the PAM umask module and doesn’t change any system behaviour perse, so to set a specific default umask for a user once the PAM umask module is enabled, we use the GECOS field in the passwd file for the user, as mentioned in the ‘man page’ for pam_umask. To enact a “group write” umask for a user, the following command is run as root:

chfn -o "umask=0002" username

Then, if that username has the following chroot-based SFTP settings in the /etc/ssh/sshd_config SSH server configuration file, when they login to the system via SFTP protocol, they’ll have a umask that will allow (in this case) group-write permissions by default on any uploaded files and directories:

UsePAM yes

Subsystem sftp internal-sftp

Match User username
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no

FYI,
Richard.

Posted in Network Presence, Sales | Tagged , , , , , | Comments Off on Using GECOS & PAM for custom umask settings, incl via Chroot SFTP

Startup Class: How to Build Products Users Love. h…

Startup Class: How to Build Products Users Love. startupclass.samaltman.com/courses/lec07/

Posted in Tweets | Comments Off on Startup Class: How to Build Products Users Love. h…

$GOOG decides that some time soon your won’t be ab…

$GOOG decides that some time soon your won’t be able to browse some https:// sites in Chrome due to SSL 3.0 issues. googleonlinesecurity.blogspot.com.au/2014/10/this-p…

Posted in Tweets | Comments Off on $GOOG decides that some time soon your won’t be ab…

RT @servantofchaos: Atlassian’s Scott Farquhar on…

RT @servantofchaos: Atlassian’s Scott Farquhar on share options and the ‘brain-dead’ things Australia does to starbuff.ly/1qYm5c8us72cA

Posted in Tweets | Comments Off on RT @servantofchaos: Atlassian’s Scott Farquhar on…

Alerting & Monitoring Philosophy from a Google…

Alerting & Monitoring Philosophy from a Google Site Reliability Engineer. docs.google.com/a/gravitant.co…

Posted in Tweets | Comments Off on Alerting & Monitoring Philosophy from a Google…

Response Times: The 3 Important Limits. ie: Aim fo…

Response Times: The 3 Important Limits. ie: Aim for 100ms from pressing enter to 1st TCP packets with page data. nngroup.com/articles/respo…

Posted in Tweets | Comments Off on Response Times: The 3 Important Limits. ie: Aim fo…

A Doom Renderer written in Rust. https://t.co/ZyHT…

A Doom Renderer written in Rust. github.com/cristicbz/rust…

Posted in Tweets | Comments Off on A Doom Renderer written in Rust. https://t.co/ZyHT…

Masters of Data Science. http://t.co/NhanUwW9Uu

Masters of Data Science. datasciencemasters.org

Posted in Tweets | Comments Off on Masters of Data Science. http://t.co/NhanUwW9Uu

RT @RealGeneKim: From the Monolith to Micro-Servic…

RT @RealGeneKim: From the Monolith to Micro-Services by @randyshoup #architecture #enterprise slideshare.net/RandyShoup/got… via @SlideShare

Posted in Tweets | Comments Off on RT @RealGeneKim: From the Monolith to Micro-Servic…