No Password Needed Nor Wanted (Solved)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Alvin
Level 3
Level 3
Posts: 117
Joined: Wed Feb 13, 2019 8:33 am

No Password Needed Nor Wanted (Solved)

Post by Alvin » Thu Apr 04, 2019 5:24 pm

In Windows 7, my password field is blank. I simply hit the enter key when prompted for it. I would like the same arrangement in Linux Mint 19.1 cinnamon. I have no need for a password. At present, my password is a single alpha character. I would like even to remove that. If I cannot remove the prompt, then I would just like to hit the enter key to continue. How can I do that, please?
Last edited by Alvin on Fri Apr 05, 2019 7:19 pm, edited 1 time in total.

User avatar
Pjotr
Level 21
Level 21
Posts: 12587
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: No Password Needed Nor Wanted

Post by Pjotr » Thu Apr 04, 2019 5:36 pm

Mend your ways. You do need a password. Together with the repo system, the consistent stringent low-level password protection is probably the most important reason why Linux is so much more secure than Windows. :wink:
Tip: 10 things to do after installing Linux Mint 19.1 Tessa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

rene
Level 10
Level 10
Posts: 3300
Joined: Sun Mar 27, 2016 6:58 pm

Re: No Password Needed Nor Wanted

Post by rene » Thu Apr 04, 2019 6:33 pm

Create a file /etc/polkit-1/localauthority/50-local.d/admin.pkla consisting of

Code: Select all

[admin]
Identity=unix-user:0;unix-group:sudo;unix-group:admin
Action=*
ResultActive=yes
This provides for global passwordless access for administrator users (root, and members of group sudo and group admin) on local consoles. Note that "local" excludes e.g. users logged in via ssh; you'd use ResultAny=yes if you'd want that.

For passwordless access through sudo in the terminal as well you'd create a file /etc/sudoers.d/admin consisting of

Code: Select all

%sudo	ALL=(ALL) NOPASSWD:ALL
%admin	ALL=(ALL) NOPASSWD:ALL
and make sure to give it 440 permission: sudo chmod 440 /etc/sudoers.d/admin.

Both those are of course pretty far-reaching and it is assumed that you know what you are doing when using anything like it; that you are e.g. preferably not running compromised servers on your Mint desktop. Note however that it is not hugely insecure in and of itself -- even though quite a few people will try and persuade you, vigorously, that it is. Most of them will not in fact understand UNIX security.

User avatar
Larry78723
Level 5
Level 5
Posts: 678
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: No Password Needed Nor Wanted

Post by Larry78723 » Thu Apr 04, 2019 7:01 pm

rene, a quick question. Does what you describe in your last post also take care of having to enter a password for gnome keyring? Just want to know so I can add it to my knowledge base.
Image

sanmig
Level 2
Level 2
Posts: 94
Joined: Tue Dec 04, 2018 8:27 am

Re: No Password Needed Nor Wanted

Post by sanmig » Thu Apr 04, 2019 7:17 pm

I think the OP’s question was:
I have a pwd (for root) but want (user) auto login after start?

rene
Level 10
Level 10
Posts: 3300
Joined: Sun Mar 27, 2016 6:58 pm

Re: No Password Needed Nor Wanted

Post by rene » Thu Apr 04, 2019 7:24 pm

Larry78723 wrote:
Thu Apr 04, 2019 7:01 pm
Does what you describe in your last post also take care of having to enter a password for gnome keyring?
No, the keyring is something else entirely. What is being done in the above is allow for passwordless/automatic authentication as your user. I.e., forego all prompts to authenticate where you'd normally enter your user password. The keyring password is not your user password -- even though the two password themselves may be the same, and in which case you can set things up to unlock the keyring automatically on login.

Given that Firefox nor Thunderbird supports the GNOME keyring I've not used it a lot. I believe Google Chrome is being annoying in that respect if you e.g. login automatically? (which keeps above automatic unlock of keyring from happening even if the keyring and login passwords ARE the same). There's basically two ways around that: set the keyring password blank, https://askubuntu.com/questions/25974/h ... 5999#25999, or use the basic password store in GNOME Chrome: http://tipsonubuntu.com/2017/12/20/goog ... n-keyring/
Last edited by rene on Thu Apr 04, 2019 7:30 pm, edited 1 time in total.

User avatar
Larry78723
Level 5
Level 5
Posts: 678
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: No Password Needed Nor Wanted

Post by Larry78723 » Thu Apr 04, 2019 7:26 pm

rene, thanks for the detailed explanation. :D
Image

rene
Level 10
Level 10
Posts: 3300
Joined: Sun Mar 27, 2016 6:58 pm

Re: No Password Needed Nor Wanted

Post by rene » Thu Apr 04, 2019 7:27 pm

sanmig wrote:
Thu Apr 04, 2019 7:17 pm
I think the OP’s question was: I have a pwd (for root) but want (user) auto login after start?
I believe he in fact intended to get rid of the runtime ones as well, but if you are right, to OP: enable automatic login for your user in Administration -> Login window -> Users.

User avatar
AZgl1500
Level 10
Level 10
Posts: 3414
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: No Password Needed Nor Wanted

Post by AZgl1500 » Thu Apr 04, 2019 7:31 pm

I uninstall the gnome keyring, I detest that damn thing.

User avatar
Larry78723
Level 5
Level 5
Posts: 678
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: No Password Needed Nor Wanted

Post by Larry78723 » Thu Apr 04, 2019 7:35 pm

Getting rid of the runtime ones seems awfully dangerous to me. I use the password prompts to slow me down so I'm sure about the steps I'm about to take. At my age, I'd be reinstalling or recovering from a backup almost daily. :oops:
Image

rene
Level 10
Level 10
Posts: 3300
Joined: Sun Mar 27, 2016 6:58 pm

Re: No Password Needed Nor Wanted

Post by rene » Thu Apr 04, 2019 7:36 pm

AZgl1500 wrote:
Thu Apr 04, 2019 7:31 pm
I uninstall the gnome keyring, I detest that damn thing.
I regret that the damn thing's still not useful for me, but blame that on Mozilla a lot more than on any keyring. Essentially it's the right idea: a central "secrets manager" rather than every individual program implementing the same old security bugs over and over again...

rene
Level 10
Level 10
Posts: 3300
Joined: Sun Mar 27, 2016 6:58 pm

Re: No Password Needed Nor Wanted

Post by rene » Thu Apr 04, 2019 7:42 pm

Larry78723 wrote:
Thu Apr 04, 2019 7:35 pm
Getting rid of the runtime ones seems awfully dangerous to me. I use the password prompts to slow me down so I'm sure about the steps I'm about to take.
It's no more, in fact given the much smaller threat level quite a bit less, dangerous than doing the same on Windows as OP stated he was. Other than that, yes, you'd as mentioned only do this if you're sure you want to. Do tend to be slightly allergic to Thou Shalt Not, though...

Alvin
Level 3
Level 3
Posts: 117
Joined: Wed Feb 13, 2019 8:33 am

Re: No Password Needed Nor Wanted

Post by Alvin » Thu Apr 04, 2019 10:39 pm

To Pjotr: My admonishing friend, please tell me against whom or what does my presumedly undesirable password protect me? I live alone. I keep my doors locked when I am not home. Does the password protect me against internet hackers?
Attentively, Alvin

User avatar
Pjotr
Level 21
Level 21
Posts: 12587
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: No Password Needed Nor Wanted

Post by Pjotr » Fri Apr 05, 2019 4:06 am

Alvin wrote:
Thu Apr 04, 2019 10:39 pm
To Pjotr: My admonishing friend, please tell me against whom or what does my presumedly undesirable password protect me? I live alone. I keep my doors locked when I am not home. Does the password protect me against internet hackers?
Attentively, Alvin
Those of course, but there's also all kinds of malware (like malicious scripts on websites) that you don't want to give unlimited access to your system. A fool that logs into his desktop as root, also runs his web browser as root.

Ze interwebz is a big bad world, son.... Your password helps to keep the wolves at bay. :mrgreen:
Tip: 10 things to do after installing Linux Mint 19.1 Tessa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Marie SWE
Level 2
Level 2
Posts: 73
Joined: Wed Feb 28, 2018 7:32 pm
Location: Sweden

Re: No Password Needed Nor Wanted

Post by Marie SWE » Fri Apr 05, 2019 5:59 pm

a small question.
Instead of having to enter a password, it is possible to do as in windows where you either click OK or cancel to verify elevated privileges?
Nothing is impossible, the impossible just takes a little longer to complete...
It is like it is, because you do what you do, if you hadn't done as you did, it wouldn't have been as it is. ;)

User avatar
Pjotr
Level 21
Level 21
Posts: 12587
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: No Password Needed Nor Wanted

Post by Pjotr » Fri Apr 05, 2019 6:07 pm

Marie SWE wrote:
Fri Apr 05, 2019 5:59 pm
a small question.
Instead of having to enter a password, it is possible to do as in windows where you either click OK or cancel to verify elevated privileges?
In the end, everything is possible in Linux. But that doesn't mean it's always sensible to do so.

Don't mess with fundamental security in Linux. Stay secure, stay safe, stay protected. :wink:
Tip: 10 things to do after installing Linux Mint 19.1 Tessa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Marie SWE
Level 2
Level 2
Posts: 73
Joined: Wed Feb 28, 2018 7:32 pm
Location: Sweden

Re: No Password Needed Nor Wanted

Post by Marie SWE » Fri Apr 05, 2019 6:28 pm

Pjotr wrote:
Fri Apr 05, 2019 6:07 pm
Marie SWE wrote:
Fri Apr 05, 2019 5:59 pm
a small question.
Instead of having to enter a password, it is possible to do as in windows where you either click OK or cancel to verify elevated privileges?
In the end, everything is possible in Linux. But that doesn't mean it's always sensible to do so.

Don't mess with fundamental security in Linux. Stay secure, stay safe, stay protected. :wink:
why isn't that sensible? wouldn't the security still be intact that way or what? only that it doesn't require a password, but an active action to approve the activity.
One doesn't need to password protect things from yourself.
Nothing is impossible, the impossible just takes a little longer to complete...
It is like it is, because you do what you do, if you hadn't done as you did, it wouldn't have been as it is. ;)

User avatar
Moem
Level 18
Level 18
Posts: 8867
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: No Password Needed Nor Wanted

Post by Moem » Fri Apr 05, 2019 6:31 pm

Marie SWE wrote:
Fri Apr 05, 2019 6:28 pm
why isn't that sensible? wouldn't the security still be intact that way or what? only that it doesn't require a password, but an active action to approve the activity.
Imagine that someone manages to gain partial control of your computer... either physically or through the internet. Shall we say, they could control the keyboard and see the screen. Would that allow them to install programs at will? Not if you are using a password.
The need to press OK would not deter them at all and they would then have full control. But the need to enter a password would deter them because they don't know what it is.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
Pjotr
Level 21
Level 21
Posts: 12587
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: No Password Needed Nor Wanted

Post by Pjotr » Fri Apr 05, 2019 6:38 pm

Like Moem said.

It's understandable that people flee from the insecurity of Windows to the better security of Linux. Security was the main reason I did that, as well, back in 2006.

But it's not understandable, and in fact very unintelligent, to want to tear down the security of Linux to the level of that same Windows that you've fled from. Makes the whole business of switching to Linux rather pointless.
Tip: 10 things to do after installing Linux Mint 19.1 Tessa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Marie SWE
Level 2
Level 2
Posts: 73
Joined: Wed Feb 28, 2018 7:32 pm
Location: Sweden

Re: No Password Needed Nor Wanted

Post by Marie SWE » Fri Apr 05, 2019 6:59 pm

Moem wrote:
Fri Apr 05, 2019 6:31 pm
Marie SWE wrote:
Fri Apr 05, 2019 6:28 pm
why isn't that sensible? wouldn't the security still be intact that way or what? only that it doesn't require a password, but an active action to approve the activity.
Imagine that someone manages to gain partial control of your computer... either physically or through the internet. Shall we say, they could control the keyboard and see the screen. Would that allow them to install programs at will? Not if you are using a password.
The need to press OK would not deter them at all and they would then have full control. But the need to enter a password would deter them because they don't know what it is.
Okay, if anyone is gaining control of my computer. Doesn't that requires a virus with root privileges?
And isn't everybody saying that it is not possible to get infected with that kind of virus?
just to clarify, no one has physical access to my computers.
Nothing is impossible, the impossible just takes a little longer to complete...
It is like it is, because you do what you do, if you hadn't done as you did, it wouldn't have been as it is. ;)

Post Reply

Return to “Newbie Questions”