sudoers // privileges

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.
Post Reply
ChrisKay
Level 1
Level 1
Posts: 5
Joined: Fri May 27, 2022 3:25 am

sudoers // privileges

Post by ChrisKay »

Hi together,

I got the problem to start some apps.

For example, starting EasySSH (doesn't matter if system packet or Flathub) > Not starting.
Going into terminal and typing > sudo easyssh works.. But it's not that what I want

And starting brave (browser) > I always have to type in my password

I tried to modify /etc/sudoers with following

Code: Select all

Tried: chris ALL=NOPASSWD: /usr/bin/easyssh
Tried: chris ALL=(ALL) NOPASSWD: /usr/bin/easyssh
Tried: chris ALL=(ALL:ALL) ALL
I guess sign out sign in should be enough?

Brave still wants me to type in a password and easyssh is not starting by simple clicking on the icon.
What am I doing wrong?
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: sudoers // privileges

Post by AndyMH »

Personally I think it is a bad idea to modify sudoers, especially if you are removing the requirement for a password for all commands. I have no idea why brave wants a password, but run easyssh with pkexec easyssh instead of sudo. You should get a pop-up asking for the password, or you can setup a polkit so it doesn't ask for a password.

You know you can ssh into a host direct from the terminal? This is sshing into my NAS where I store my rsync backups:

Code: Select all

andy@M720 ~ $ ssh backup@diskstation.local

Using terminal commands to modify system configs, execute external binary
files, add files, or install unauthorized third-party apps may lead to system
damages or unexpected behavior, or cause data loss. Make sure you are aware of
the consequences of each command and proceed at your own risk.

Warning: Data should only be stored in shared folders. Data stored elsewhere
may be deleted when the system is updated/restarted.

backup@DiskStation:~$ ls
M720home  M720script  M720VM
backup@DiskStation:~$ exit
logout
Connection to diskstation.local closed.
andy@M720 ~ $ 
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Lady Fitzgerald
Level 15
Level 15
Posts: 5821
Joined: Tue Jan 07, 2020 3:12 pm
Location: AZ, SSA (Squabbling States of America)

Re: sudoers // privileges

Post by Lady Fitzgerald »

AndyMH wrote: Thu Mar 28, 2024 6:17 am ...I have no idea why brave wants a password...
Brave uses a keyring to open up (or something like that). If you set up Mint to open without a password, then Brave can't access it to open up. I found a way to bypass that but forget how now.

Edit: This explains why: https://community.brave.com/t/brave-for ... a/294819/4

I think this was how I fixed it: https://youtu.be/w1ZEEc-ZY4w
Jeannie

To ensure the safety of your data, you have to be proactive, not reactive, so, back it up!
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: sudoers // privileges

Post by Pjotr »

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.
User avatar
Lady Fitzgerald
Level 15
Level 15
Posts: 5821
Joined: Tue Jan 07, 2020 3:12 pm
Location: AZ, SSA (Squabbling States of America)

Re: sudoers // privileges

Post by Lady Fitzgerald »

Pjotr wrote: Thu Mar 28, 2024 1:14 pm In writing:
https://easylinuxtipsproject.blogspot.c ... .html#ID15
(item 15)
That's a shotgun approach that will kill all passwords and password requirements. The approach I used affects only the one website, in this case, Brave, by replacing its password, which defaulted to using the computer's login password, with what I guess you could call a null "password" (at least, I think that's how it works).
Jeannie

To ensure the safety of your data, you have to be proactive, not reactive, so, back it up!
User avatar
Pjotr
Level 24
Level 24
Posts: 20142
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: sudoers // privileges

Post by Pjotr »

Lady Fitzgerald wrote: Thu Mar 28, 2024 1:44 pm
Pjotr wrote: Thu Mar 28, 2024 1:14 pm In writing:
https://easylinuxtipsproject.blogspot.c ... .html#ID15
(item 15)
That's a shotgun approach that will kill all passwords and password requirements.
No it will most definitely not. It will only disable the keyring password, which keyring is mainly (though not exclusively) used by web browsers, for safely storing website login passwords.
Lady Fitzgerald wrote: Thu Mar 28, 2024 1:44 pm The approach I used affects only the one website, in this case, Brave, by replacing its password, which defaulted to using the computer's login password, with what I guess you could call a null "password" (at least, I think that's how it works).
Brave is not a website but a web browser.
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.
Post Reply

Return to “Beginner Questions”