I have a file that's owned by www-data:www-data and has rwxrwxrwx permissions. Despite being root I can't write to it, however I can remove it. The /tmp folder has drwxrwxrwt permissions. Where the problem might be? # Can't write to file root@app-web:/data/app# &gt;&gt; /tmp/app.log bash: /tmp/app.log: Permission denied  # Permissions on file root@app-web:/data/app# ls -alt /tmp/app.log  -rwxrwxrwx 1 www-data www-data 18788 /tmp/app.log  # I can remove it root@app-web:/data/app# rm -r /tmp/app.log  # Create it  root@app-web:/data/app# touch /tmp/app.log   # Write to it root@app-web:/data/app# &gt;&gt; /tmp/app.log   # Once I change owner back to www-data root@app-web:/tmp# chown www-data:www-data /tmp/app.log  # I can no longer write root@app-web:/tmp# &gt;&gt; /tmp/app.log bash: /tmp/app.log: Permission denied  root@app-web:/data/app# lsattr /tmp/app.log --------------e--- /tmp/app.log  root@app-web:/data/app# getfacl /tmp/app.log # file: app.log # owner: www-data # group: www-data user::rwx group::rwx other::rwx   My /tmp folder sits in / mount. overlay on / type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/JYPNMY5ACNKQ4ZF6Z43DCI2ITB...upperdir=/var/lib/docker/overlay2/bf343e129700f4357a4d24bd0a9782d094e8e51f21e06932111ec432a3ab27dc/diff,workdir=/var/lib/docker/overlay2/bf343e129700f4357a4d24bd0a9782d094e8e51f21e06932111ec432a3ab27dc/work,xino=off)  Permissions of /tmp drwxrwxrwt   1 root root 4096 tmp
In Ubuntu 18.04, I can create a file as one user in /tmp, and write to it as user root (despite the sticky bit being set on /tmp). In Ubuntu 20.04, I get a Permission Denied error as user root. Ubuntu 18.04: # As user &quot;ubuntu&quot;: touch /tmp/tmplock  # As user &quot;root&quot;: echo &quot;foo&quot; &gt; /tmp/tmplock  cat /tmp/tmplock # Outputs &quot;foo&quot;  ls -lah /tmp drwxrwxrwt 32 root   root    20K Jun 16 18:36 . -rw-rw-r--  1 ubuntu ubuntu    4 Jun 16 18:36 tmplock  Ubuntu 20.04: # As user &quot;ubuntu&quot;: touch /tmp/tmplock  # As user &quot;root&quot;: echo &quot;foo&quot; &gt; /tmp/tmplock # Outputs: bash: /tmp/tmplock: Permission denied  ls -lah /tmp drwxrwxrwt 12 root   root   4.0K Jun 16 18:15 . -rw-rw-r--  1 ubuntu ubuntu    0 Jun 16 18:14 tmplock  I can't find any information on if this is related to the sticky bit, or an underlying Linux kernel change, or anything. Does anyone know what can explain the change in behavior?
I know someone or the other has asked about disabling ⌘Q, but I like the shortcut, and I use it often. However, I use an email client called Airmail that unfortunately does not keep a service (for notifications) running in the background when it is quitted. However, if I press the close button a service runs in the background, allowing me to receive notifications.  But since I have a habit of pressing ⌘Q all the time to close apps, I was looking into a way I could disable it for only Airmail.  Anyone know of a what to do this? Can I use a charger with more output amperage than the device needs? In a bash script, how can I redirect all standard outputs to a log file and tee the output on the screen using exec ?  log_file="$HOME/logs/install.txt-`date +'%Y-%m-%d_%H-%M-%S'`" [ -f "$log_file" ] || touch "$log_file" exec 1&gt;&gt; $log_file 2&gt;&amp;1   This code redirect all the log to the log file but not to the screen . InDesign: How do I automatically align the bottoms of different columns of text boxes to the same height as the one with the most text? In InDesign, I have some filled text boxes, sized by columns, with the one on the left being three columns wide.   The wide text box is most likely to contain the most text (it's an invoice template).  I will use the 'Fit frame to content' button on the Selection Tool toolbar for automatically vertically resize it to fit the containing text.  How do I make the other three smaller text frames automatically adjust to the same height as the big (and longer) text box? Is it possible to save settings for Microsoft Paint? After closing paint the last used settings went back to default. I want them to be saved. Like the selected Brush-Tool, Color, Line-strength, etc.  Either after every usage or I define one I use most. Maybe through the registry or by start parameters? How can I flush the output of the print function? How do I force Python's print function to output to the screen? How do I concatenate JavaScript files into one file? How should you interview for QA *Automation* positions? exponentiation of cardinal number I have encountered a statement in Lang's Algebra (Revised Third Edition, page 53) concerning morphisms of objects that seems strange to me: "In practice, in this book we shall see that most of our morphisms are actually mappings, or closely related to mappings."  I have always been under the impression that the terms 'mapping' and 'morphism' are synonymous in the context of categories. Perhaps it is just the case that Lang defines the two in a way that they disagree, but I can't find such an instance. Are they in fact different? If so, what is an example of a morphism that is not a mapping? Background: This question relates to versions of Delphi below 2009 (ie without Unicode support built in). I have a specification that requires me to transmit a Unicode encoded string over a TCP connection but I do not have Delphi 2009.   Question Is there a single function or very small library (I don't need too much bulk) that I can use to encode a single string into UTF-8 immediately prior sending over the wire? As a second part of my question: if there are UTF-8 encoded strings being sent back as a response, I guess I would then need another function to get it back into a Delphi string format. I understand the limitations of such Unicode support in this way. Elevated command line prompt can't access shared drives I map a share from another machine using my user account. I launch an elevated command prompt (cmd.exe, right click, Run as administrator). Navigating to shared drive (Z:) results in:   The system cannot find the drive specified  Now if I open a non elevated command prompt, I can navigate to Z: just fine. How do you add tags to blocks so they can only be placed on 1 type of block? php--glob for searching directories and .jpg only Full Disk Encryption using Ubuntu Core\Snappy I'm not sure if this is the right place to ask , but anyway :   I'm running ubuntu-core (snappy) on Raspberry Pi 3 and I'm willing  to perform partition\full disk encryption using cli\code. is it possible?  thanks I have a population density raster and would like to create 5 polygons from the 5 natural break (jenks) classification ranges. 1 polygon for each classification range. I'm using ArcMap10 and have all of the Extensions enabled in the ToolBox to my disposal.   Thanks! Disable Mac startup sound Anyone know how to disable that cheesy startup sound when I power on my Mac?  If it makes a difference, I'm running Mac OS X 10.6. How do I know if I have a selected keyframe using python? How to add CC to a webform email? I'm using Drupal 7.  Is it possible to add a CC to a webform email?  I was using   function theme_webform_mail_headers($variables) {   $headers = array(     'X-Mailer' =&gt; 'Drupal Webform (PHP/' . phpversion() . ')',   );   return $headers; }   changing it with      function MYTHEME_webform_mail_headers($variables) {       $headers = array( 'CC' =&gt; 'ccmeail@domain.com', 'X-Mailer' =&gt; 'Drupal Webform (PHP/'. phpversion() .')',  );       return $headers;     }   It does not work, I've cleared all the chaches and it does not add the CC. How could I add the CC?  Thanks in advance. Should I use the past tense with did?