You are not logged in.

#1 2016-12-02 11:42

barneycat74
Member
Registered: 2016-12-02
Posts: 11

no password on sudo request

When I boot up the PC it asks for my password, but doesn't when running synaptics or installing from the terminal using "sudo". From an earlier topic I tried to adjust the  'timestamp_timeout' option defined in '/etc/sudoers.d/q4_sudo_confd' by changing it to 0, but it doesn't seem to make any difference. Even after reboot it still doesn't ask for a password when using "sudo" in the terminal or using synaptic, so for the moment I've changed it back to 30. Any help with this would be appreciated.

Thanks.

Offline

#2 2016-12-02 11:50

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: no password on sudo request

I have mine set to a lower number but still enabled as I think 3-5 minutes is sufficient (for my needs at least) and it does work as it should. You could try adjusting it to a lower value, reboot and test if it works ok that way. If it does then change it to 0, reboot and test again. I have it working ok here, but there could always be another option somewhere (that I'm not aware of) that is overriding this.
If you only logged out and back in again the settings might not take effect,  to be sure everything refreshes make sure to reboot.

Offline

#3 2016-12-02 11:58

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: no password on sudo request

barneycat74 wrote:

... I tried to adjust the  'timestamp_timeout' option defined in '/etc/sudoers.d/q4_sudo_confd' by changing it to 0, but it doesn't seem to make any difference.

We are not able to reproduce. Clean Q4OS install, set 'Defaults timestamp_timeout=0' option defined in '/etc/sudoers.d/q4_sudo_confd', launching Synaptic asks for the password each time. Please specify how do you start 'Synaptic'. Also try to run in terminal:
$ sudo synaptic
$ sudo synaptic
and post here a result. It should ask for password both times.

Offline

#4 2016-12-02 12:07

barneycat74
Member
Registered: 2016-12-02
Posts: 11

Re: no password on sudo request

Ok using sudo synaptic prompts for password. Using sudo apt-get install "program" does not.

Offline

#5 2016-12-02 12:12

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: no password on sudo request

barneycat74 wrote:

... using sudo apt-get install "program" does not.

Yes, terminal command 'apt-get' is excluded from password prompting in Q4OS. Nonetheless the user must be member of the 'sudo' group to perform it. Non 'sudo' users are not allowed to run 'apt-get' at all.

Offline

#6 2016-12-02 13:13

barneycat74
Member
Registered: 2016-12-02
Posts: 11

Re: no password on sudo request

Ah ok that makes sense and now I know it is working correctly. Thank you Q4OS team and Dai_trying for your help.

Offline

#7 2016-12-02 13:29

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: no password on sudo request

You are welcome smile

Offline

Board footer

Powered by FluxBB