I have created a group named newgroup
. But I didn't add my user to this group. Now I want give the write permission
to this group for a specific file named sample.txt
. I can use chmod
if I am the member of this newgroup
. Can I do this using sudo? How? I created this group using the following command
sudo groupadd newgroup