I am creating some files by sudoing as a user u1.
sudo -u u1 touch file1.txt. The files are created with g-w permission. When I login as u1 and create a file, the file gets created with g+s permission.
How can I create the files with g+s permission using sudo -u command ? The umask value for u1 is 002.
Thanks