I have two users mix and www-data (an apache server). I want that these two users have permissions to read and write in the Virtual Serial Port /dev/pts/3, i created this virtual port following this tutorial https://stackoverflow.com/questions/52187/virtual-serial-port-for-linux.
So I added these two users to the group serial:
sudo adduser www-data serial
sudo adduser mix serial
and I granted access to the group to /dev/pts/3
sudo chgrp serial testdir
and I added 775 permission to /dev/pts/3
I'm able to write and read with the user mix but I can't write with the user www-data. Am I doing something wrong?
EDIT:
I restarted my apache server and now it works
setfacl
. see https://unix.stackexchange.com/questions/101263/what-are-the-different-ways-to-set-file-permissions-etc-on-gnu-linux – ctrl-alt-delor Apr 10 '21 at 22:45