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?
ls -al /var/lib/sysnews– eyoung100 May 14 '14 at 14:58echo "Hello World" | sudo tee -a /var/lib/sysnewsorsudo sh -c "echo \"Hello World\" > /var/lib/sysnews"or switch to root withsudo -i. – terdon May 14 '14 at 15:00newscommand or similar to post news without being root: this is why I didn't looked for piping answers. – BowPark May 14 '14 at 15:22