For starting gdm I am using this command
sudo systemctl start gdm.service
When I am executing this command directly on the shell, then I am presented with the
[sudo] password for username:
Thats completely understandable as I am using sudo command for the privillages, but when I omit the sudo
command then I get this
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start 'gdm.service'.
Authenticating as: username
Password:
Actually I have created a script file with permission rwsr-xr-x and the owner of the file is root, and the script's content is:
sudo systemctl start gdm
And when I am executing this, then it should run as root, without asking for password, but it asks this.
[sudo] password for username:
I just want to be able to start gdm without entering the password
journalctl -u polkit -n 50
?