Kali-Pi icon indicating copy to clipboard operation
Kali-Pi copied to clipboard

found minor problem in new "any user" feature

Open Gh0stInTh3M4ch1n3 opened this issue 6 years ago • 6 comments

Re4son, I found something we missed when I tested the new user options for version 3.0 the other night.

When issuing "adduser newuser", the Kali pi repo doesn't automatically copy over. So I copied Kali-pi from "pi" to "newuser" manually. Everything seemed fine, but we forgot about something... whenever issuing "sudo" as "newuser", it says "newuser" doest exist in sudoers.

I think it's because I just did usermod to change "pi" into "newuser" while testing, instead of adding user, so everything was replaced with "newuser".

Just a heads up. Idk if it's just something I'm doing wrong or what.

-(aka) Blakk.s

Gh0stInTh3M4ch1n3 avatar Jun 17 '18 22:06 Gh0stInTh3M4ch1n3

Oops, thanks for raising that. Something to consider for the kalipi-menu item you suggested.

Is the new user a member of the group "pi"? If not you should adjust this line in "/etc/sudoers": %pi ALL=(ALL:ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown, /home/pi/Kali-Pi/menu

Re4son avatar Jun 21 '18 09:06 Re4son

Sorry for late reply... No, it didn't add new user to group pi. Replacing "%pi" with "%newuser" as suggested works.

I left the /home dir as "/home/pi/Kali-Pi/menu". Haven't tested menu yet, but should work fine as I don't get the "newuser is not part of sudoers" error.

Gh0stInTh3M4ch1n3 avatar Jun 29 '18 05:06 Gh0stInTh3M4ch1n3

Scratch that. It only allows "sudo reboot" and such. Doing "sudo apt-get update" returns: Sorry, user newuser is not allowed to execute '/usr/bin/apt-get update' as root of Kali-Pi.

Gh0stInTh3M4ch1n3 avatar Jun 29 '18 07:06 Gh0stInTh3M4ch1n3

Sorry, forgot to mention to add "newuser" to a few groups:

usermod -a -G sudo,ftp,kismet newuser

Please let me know how your go with that

Re4son avatar Jun 29 '18 09:06 Re4son

Will do soon Re4son, thanks

Gh0stInTh3M4ch1n3 avatar Jul 02 '18 14:07 Gh0stInTh3M4ch1n3

There it is. That did it

3x-M4ch1nA avatar Jul 05 '18 12:07 3x-M4ch1nA