Posts: 100
Threads: 17
Joined: Feb 2016
Reputation:
0
02-10-2016, 07:34 PM
(This post was last modified: 02-13-2016, 12:09 PM by liamjake05.)
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.
Posts: 1,599
Threads: 86
Joined: Jun 2015
Reputation:
0
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.
Posts: 100
Threads: 17
Joined: Feb 2016
Reputation:
0
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.
Posts: 1,599
Threads: 86
Joined: Jun 2015
Reputation:
0
02-11-2016, 03:13 PM
(This post was last modified: 02-11-2016, 03:32 PM by torreydale.)
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.
Want to thank me? Click my [Thank] link.
Posts: 1,599
Threads: 86
Joined: Jun 2015
Reputation:
0
02-11-2016, 04:22 PM
(This post was last modified: 02-11-2016, 05:00 PM by torreydale.)
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.
Want to thank me? Click my [Thank] link.
Posts: 100
Threads: 17
Joined: Feb 2016
Reputation:
0
But this is not for him to have access to sudo but it is so that I do not stay all day switching accounts.
Posts: 1,849
Threads: 21
Joined: Sep 2015
Reputation:
0
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
Posts: 100
Threads: 17
Joined: Feb 2016
Reputation:
0
All I want to know is how to make other users require my password for root access
Posts: 1,599
Threads: 86
Joined: Jun 2015
Reputation:
0
02-11-2016, 06:57 PM
(This post was last modified: 02-11-2016, 07:07 PM by torreydale.)
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.
Want to thank me? Click my [Thank] link.