Sorry, I forgot to test with and without setuid bit: $ id -un userA $ echo "Content text" > file.txt $ sudo chown userB file.txt $ sudo chmod u+s,g+rw file.txt
$ nano file.txt # Modyfy and save: Fine. $ gedit file.txt # Modify and save: GLib-GIO:ERROR:/build/glib2.0-B1uXKV/glib2.0-2.50.3/./gio/glocalfilemonitor.c:433:g_file_monitor_source_handle_event: code should not be reached