Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

found minor problem in new "any user" feature #3

Open
Gh0stInTh3M4ch1n3 opened this issue Jun 17, 2018 · 6 comments
Open

found minor problem in new "any user" feature #3

Gh0stInTh3M4ch1n3 opened this issue Jun 17, 2018 · 6 comments

Comments

@Gh0stInTh3M4ch1n3
Copy link

Gh0stInTh3M4ch1n3 commented Jun 17, 2018

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

@Re4son
Copy link
Owner

Re4son commented Jun 21, 2018

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

@Gh0stInTh3M4ch1n3
Copy link
Author

Gh0stInTh3M4ch1n3 commented Jun 29, 2018

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
Copy link
Author

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.

@Re4son
Copy link
Owner

Re4son commented Jun 29, 2018

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

@Gh0stInTh3M4ch1n3
Copy link
Author

Will do soon Re4son, thanks

@3x-M4ch1nA
Copy link

There it is. That did it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants