Linux Lite Forums
Your password required for other users sudo - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Hardware - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=6)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=28)
+--- Thread: Your password required for other users sudo (/showthread.php?tid=2659)

Pages: 1 2


Your password required for other users sudo - liamjake05 - 02-10-2016

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.


Re: Your password required for other users sudo - torreydale - 02-10-2016

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).


Re: Your password required for other users sudo - liamjake05 - 02-11-2016

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 - torreydale - 02-11-2016

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.


Re: Your password required for other users sudo - liamjake05 - 02-11-2016

I did all you told me but it is not what i want. I want him to use my password in his account for sudo like the image in the following link: https://www.google.com/imgres?imgurl=http://www.sevenforums.com/attachments/tutorials/66324d1270896748-uac-require-password-administrator-uac-password.png&imgrefurl=http://www.sevenforums.com/tutorials/77389-uac-require-password-administrator.html&h=361&w=466&tbnid=SN4sYLsXg4FdKM:&docid=mIwhF8PnSHozBM&ei=u6-8Vr-KK6TgyQPTzqK4AQ&tbm=isch&client=ubuntu&ved=0ahUKEwj_0-eDivDKAhUkcHIKHVOnCBcQMwgdKAAwAA . I do not want something exactly like this but similar.


Re: Your password required for other users sudo - torreydale - 02-11-2016

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.




Re: Your password required for other users sudo - liamjake05 - 02-11-2016

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 - firenice03 - 02-11-2016

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 Smile

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..


Re: Your password required for other users sudo - liamjake05 - 02-11-2016

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 - torreydale - 02-11-2016

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.