Lots of password nagging - is this Vista reincarnated?

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
chroma601

Lots of password nagging - is this Vista reincarnated?

Post by chroma601 »

Every time I open a web browser, I need to enter my password to unlock something. Most every admin task requires it. I am the only one using the computer, and there is nothing of value on it (at this time, anyway). When I upgrade to 16, is there a way to avoid so much password entry. or is that simply to be expected with Linux?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: Lots of password nagging - is this Vista reincarnated?

Post by WharfRat »

You can bypass the sudo password by changing one line in /etc/sudoers to

Code: Select all

%sudo	ALL=(ALL) NOPASSWD: ALL
You must use visudo or nano to edit this file. I use nano.

Backup the original before making the change as if it's done incorrectly you'll have problems.

Also, just in case, set a root password so you can su to root in case you break sudo

Code: Select all

sudo passwd root
Don't forget the root password.

Good luck :wink:
chroma601

Re: Lots of password nagging - is this Vista reincarnated?

Post by chroma601 »

Thanks, will give it a try!
mtflo

Re: Lots of password nagging - is this Vista reincarnated?

Post by mtflo »

Does not work in Mint 17.3 Any other ideas on how to get rid of the terrible password nagging?
Thanks for your help.
User avatar
karlchen
Level 23
Level 23
Posts: 18228
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Lots of password nagging - is this Vista reincarnated?

Post by karlchen »

Hello, mtflo.

It is generally not a smart idea to append a question / comment / complaint to a thread which has not received any updates for more than 2 years. Information given in such old threads might be outdated.
Nonetheless, in this case the instructions given for an older Linux Mint release should still work on Linux Mint 17.3 as well.
Conclusion: you might be doing something incorrectly.
You should bother to tell in more details what you do and what the result of each step is. Else it might be hard to give any more precise answer.

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Penn

Re: Lots of password nagging - is this Vista reincarnated?

Post by Penn »

Not only is Karlchen right that you should start a thread or find a more recent one but the exact message when it asks for a password may be necessary. If it has to do with "keyring" I think I saw a solution not too long ago and it is fixable.
mtflo

Lots of password nagging - is this Vista reincarnated?

Post by mtflo »

Visudo or nano are not present on my distribution. Therefore it is not possible to use them.
Sorry about posting to an old post but I get yelled at for starting a new thread also.


Sent from my iPhone using Tapatalk
Habitual

Re: Lots of password nagging - is this Vista reincarnated?

Post by Habitual »

mtflo wrote:Sorry about posting to an old post but I get yelled at for starting a new thread also.
How's that? You only have 2 posts.
LinuxJim

Re: Lots of password nagging - is this Vista reincarnated?

Post by LinuxJim »

mtflo wrote:Visudo or nano are not present on my distribution. Therefore it is not possible to use them.
??? Then why don't you install them?

In any case, you can use the text editor of your choice. Surely you have at least one available.
mtflo

Re: Lots of password nagging - is this Vista reincarnated?

Post by mtflo »

I did try to open it with the included textediter, it could not open it.
This is a question in the Newbie section.
I had no idea what Visudo or Nano were (this is the newbie section)

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.

I read the documentation that came with Mint. No reference to my issue that I could find.

I searched the forms to try to find the answer.

Then some techie pricks decided that they needed to teach this newbie a lesson on who knows the most. (This is the newbie section)

I know this won't get posted.
LinuxJim

Re: Lots of password nagging - is this Vista reincarnated?

Post by LinuxJim »

To edit the file in question requires root privileges. Simply clicking on it as a normal user doesn't work.

To edit the file with root privileges, type this in a terminal:

Code: Select all

gksudo gedit /etc/sudoers
Be aware, however, that you are playing with fire here - modifying system files like this is not a newbie activity. I strongly suggest a little reading and research first to understand WHY you want to do this and WHAT are the consequences. If you can't be bothered, then Linux is not for you.

The question is not stupid. The attitude is.
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Lots of password nagging - is this Vista reincarnated?

Post by Moem »

mtflo wrote:I know this won't get posted.
I think you'll have a better experience here if you give us a little more credit. We are generally friendly to newbies (I should know, I'm a newbie too). The only exception is newbies who come in pretending they know it all.
Starting your own thread is expected behaviour and won't get you yelled at. Welcome to Mint, to Linux and to the forums.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
ZeckeSZ
Level 1
Level 1
Posts: 31
Joined: Tue May 22, 2012 1:37 am
Location: Salzgitter, Germany

Re: Lots of password nagging - is this Vista reincarnated?

Post by ZeckeSZ »

LinuxJim wrote:

Code: Select all

gksudo gedit /etc/sudoers
Never edit this file with a normal text editor, always use the visudo command instead:
visudo parses the sudoers file after the edit and will not save the changes if there is a syntax error

Code: Select all

man visudo
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Lots of password nagging - is this Vista reincarnated?

Post by Cosmo. »

ZeckeSZ wrote:Never edit this file with a normal text editor, always use the visudo command instead
Absolutely.

Regarding visudo and nano not being there:
Open a terminal and enter

Code: Select all

nano
If nano does not start, marke the complete content of the terminal and paste it here.
gold_finger

Re: Lots of password nagging - is this Vista reincarnated?

Post by gold_finger »

mtflo wrote:Visudo or nano are not present on my distribution.
They are present, but since you're new to using Linux you just don't know where they are. They are not gui applications that show up somewhere in the Menu, which can lead you to think they're not installed. Both are invoked from the terminal rather than from the applications menu. So, WharfRat's original instructions from 2 years ago are still valid but they assumed a certain amount of knowledge on the user's part. To edit /etc/sudoers file using either visudo or nano means you have to do it with either of these two commands in a terminal:

Code: Select all

visudo /etc/sudoers
Or

Code: Select all

sudo nano /etc/sudoers
Having said that, as ZeckeSZ pointed out, the safest/preferred/best way to edit that file is to use visudo for reason quoted.

Lastly, I'd strongly urge you to not change default settings for entering passwords until you are at least a bit more experienced with Linux and fully understand potential consequences of doing things like that.
User avatar
Pjotr
Level 24
Level 24
Posts: 20131
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Lots of password nagging - is this Vista reincarnated?

Post by Pjotr »

LinuxJim wrote:Be aware, however, that you are playing with fire here - modifying system files like this is not a newbie activity. I strongly suggest a little reading and research first to understand WHY you want to do this and WHAT are the consequences. If you can't be bothered, then Linux is not for you.

The question is not stupid. The attitude is.
Well put, sir! :)

No offense meant towards my forum colleagues, but teaching a newbie how to do this, is like teaching a toddler how to fire a shotgun...
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
gold_finger

Re: Lots of password nagging - is this Vista reincarnated?

Post by gold_finger »

Pjotr wrote:No offense meant towards my forum colleagues, but teaching a newbie how to do this, is like teaching a toddler how to fire a shotgun...
I agree ... to a point.

Normally I would post a stern warning first and explain why it's not a good idea. Inevitably, many others would also post the same warnings. Then, in vast majority of cases, OP would realize that it's not a good idea and decide to forget about the idea and that's usually the end of it. (I'd guess this happens around 95% of the time.)

Three reasons why I didn't withold answer from the get go this time:
  1. Answer was already provided and I was just clarifying it.
  2. I suspected this poster is same person as in this thread, but under different name. Same bad attitude and still insisting on getting an answer despite multiple prior warnings on both threads.
  3. It's not my/our job to "save" the people from themselves if they absolutely refuse to heed warnings. If person ends up breaking his/her system, it's his/her own fault.
The answer was legitimate. There is nothing malicious about the commands. The poster knows that it's not recommended at all to run the system that way, but has decided to do it anyway.
Locked

Return to “Beginner Questions”