I want to create a user in such a way that it can create a file and update the contents of the file.
useradd username
Now for sudo, we can create username and linking to sudo like below:
useradd username sudo
But I dont want to give sudo access. Without sudo access, I am unable to create files and update files.
sudo
privilege, then don't givesudo
privilege (don't add user to group,sudo
). All users can create, write, read files.