This question already has an answer here:
In that folder are stored the
news files: they can be created by the system administrator to write some informations for the users, as suggested in this link.
I tried as a normal user to add a file in
/var/lib/sysnews, but nor this command
echo "Hello world" > /var/lib/sysnews
neither this command
sudo echo "Hello world" > /var/lib/sysnews
worked (it gives permission denied error).
The folder is owned by
root user and by the
staff group. My normal user was already in the
sudo group; I added the
staff group for my user, but with no results.
I can add news only by creating a file in one of my folders and then typing
sudo mv myfile /var/lib/sysnews
but it is bothering.
Is there a simpler way to add some news file to that folder without being root?