You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Your password required for other users sudo

Author (Read 6323 times)

0 Members and 1 Guest are viewing this topic.

Re: Your password required for other users sudo
« Reply #14 on: February 11, 2016, 03:21:31 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
If you've done "su yourusername" from a terminal while you're brother is logged in to the desktop environment, it seems like you'll then need to type this from a terminal:

Code: [Select]
sudo lite-software
Then you'll be asked for your password.
Want to thank me?  Click my [Thank] link.
 

Re: Your password required for other users sudo
« Reply #13 on: February 11, 2016, 02:31:08 PM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
what about apps like lite software. The ubuntu software centre lets me in with my password but lite software will not let me
 

Re: Your password required for other users sudo
« Reply #12 on: February 11, 2016, 02:10:49 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
Then for that, you can open a terminal and type in "su [your username]."  You will be prompted for your password.  After being authenticated, you can operate as you would under your privileges.  When you're finished, you just type in the word "exit."


By the way, I did create a user called "test" without sudo privileges, and when I attempted to open Install/Remove Software, it asked for the password of my account.  So that seems to mimic Windows UAC.  Install/Remove Software would only ask for the password for "test", after I added "test" to the sudo group.
« Last Edit: February 11, 2016, 02:29:56 PM by torreydale »
Want to thank me?  Click my [Thank] link.
 

Re: Your password required for other users sudo
« Reply #11 on: February 11, 2016, 02:05:41 PM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
I did not tell my password in windows. The function of all this is so I do not have to switch accounts all day to fix problems and/or to install apps myself quickly.
 

Re: Your password required for other users sudo
« Reply #10 on: February 11, 2016, 01:57:30 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
When you gave your brother the password to your Windows account, whether you knew it or not, you were giving him administrator privileges to accomplish something that would modify system settings, such as installing software and changing system files.  To offer that privilege to others by giving out your password is nonsense.  But to mimic that behavior here, you would just need to add each user account to the sudo group.  They would use their password (which you can make the same as yours), but the result would be the same.

That is the answer to your question.

You will lose control here, as you did with giving out your password in Windows.  But I am glad you are with Linux now.  It is a better environment for what you want.  The opportunity for damage is reduced, though under this scenario, far from absent.

Reference this link.
« Last Edit: February 11, 2016, 02:07:04 PM by torreydale »
Want to thank me?  Click my [Thank] link.
 

Re: Your password required for other users sudo
« Reply #9 on: February 11, 2016, 01:30:22 PM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
All I want to know is how to make other users require my password for root access
 

Re: Your password required for other users sudo
« Reply #8 on: February 11, 2016, 12:50:10 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
If I understand you want a "login" generic account and an "admin" account?...

The log on account can't do everything and is shared for all users, but should your little bro try and delete everything on the drive a prompt for Admin access ("UAC") is presented???
Hey little bro's (and kids) can  ;D

Just do the same as torreydale specified...
1st account is the sudo account ("your" account) then create a 2nd account not in sudo - use this for logging in or auto log this account.
Whenever something needs elevated access it will prompt for a password (root access) - the 1st account :)

Now not 100% sure but, should sudo "su" be used in this scenario to invoke the "root" prompt or to switch?.. *I can't say for sure how this will/would/should work in Linux, as I'm still new and I just have the one account...  But maybe another can correct me or explain further..??..

sudo=root access which is Admin access..
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: Your password required for other users sudo
« Reply #7 on: February 11, 2016, 12:11:39 PM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
But this is not for him to have access to sudo but it is so that I do not stay all day switching accounts.
 

Re: Your password required for other users sudo
« Reply #6 on: February 11, 2016, 11:22:52 AM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
Understood.  I am familiar with Windows' UAC.  And I repeat, why give someone you called "non-trustable" your password?  If you do, for what reason would they need a separate user account? 

For what you're asking, you might as well let him log in with your account or just add his user account to the sudo group.  With either of these options, you're going to have to trust him.  That is what you were doing in Windows when you gave him your password to address the Windows UAC prompts.

« Last Edit: February 11, 2016, 12:00:28 PM by torreydale »
Want to thank me?  Click my [Thank] link.
 

Re: Your password required for other users sudo
« Reply #5 on: February 11, 2016, 10:59:51 AM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
 

Re: Your password required for other users sudo
« Reply #4 on: February 11, 2016, 10:13:57 AM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
That is the expected behavior.  If he is non-trustable, you should not give him sudo (i.e. administrator) rights, which means he should not be part of the sudo group and he should not have your password.

If you want him to have your password, then he can log in as you.  And then he can install, remove, and upgrade programs at will.  He can also create, edit, and remove documents at will. 

When you gave him your password in Windows, you were giving him the ability to do the same thing.
« Last Edit: February 11, 2016, 10:32:32 AM by torreydale »
Want to thank me?  Click my [Thank] link.
 

Re: Your password required for other users sudo
« Reply #3 on: February 11, 2016, 09:57:25 AM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
Yes I did that but it asks him for his password and then it will say he is not allowed. I want him to use my password for sudo.
 

Re: Your password required for other users sudo
« Reply #2 on: February 10, 2016, 03:43:56 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1588
    Posts
  • Reputation: 261
  • * Forum Moderator *
    • View Profile

  • CPU: Intel i5-3230M (4) @ 3.200GHz

  • MEMORY: 16Gb

  • VIDEO CARD: Intel 3rd Gen Core processor Graphics

  • Kernel: 5.x
To liamjake05,

When you log into Linux Lite, you are operating under a limited user account.  Whenever you're running a task which requires administrator (ie. root) privileges, you'll be prompted to enter your password if your account is part of the sudo group.  Therefore, it seems a good solution for you would be to create a separate account for your brother but make sure he's not part of the sudo group.  You can do all of this from the User Manager (Menu > Settings > User Manager).
Want to thank me?  Click my [Thank] link.
 

Your password required for other users sudo
« Reply #1 on: February 10, 2016, 02:34:24 PM »
 

liamjake05

  • Forum Regular
  • ***
  • 100
    Posts
  • Reputation: 3
    • View Profile

  • MEMORY: 4Gb
I am a windows user that just got a PC with no OS and I installed Linux Lite. In windows, you have UAC and on other users which are not an administrator it will ask you for the administrator password. Is it possible to enable that in Linux Lite as I have a non-trustable little brother.
« Last Edit: February 13, 2016, 07:09:40 AM by liamjake05 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section