Commit Graph

10 Commits (6ea2a3ce82268d90761b13bd17449bff1da6541e)

Author SHA1 Message Date
Arnaud Rebillout 6ea2a3ce82
Add kali user to additional groups one by one
Up to now, it was fine to use a command such as:

    usermod -a -G group1,group2,... kali

However a limitation is that all the groups that are given to the option
-G must exist. If that's not the case, usermod fails (return code: 6)
without doing anything, and the user is not added to any group.

So with this commit, we prepare the code to support optional groups,
that might or might not exist. If ever a group does not exist, it's
skipped silently.
3 years ago
Arnaud Rebillout da484826f4
Nitpicks in kali-{user-setup,finish-install}
Changes:
- order groups alphabetically
- use the same comment "Ensure those groups exist" consistently in the 2
  scripts, and also drop the comment regarding a "generically named"
  function.
- adds "|| true" to the usermod command in kali-user-setup (only for
  consistency, the script is not run with "set -e" anyway).

After those changes, the two functions "configure_usergroups()" are very
similar, and it's very easy to spot the differences between both.
3 years ago
Arnaud Rebillout d8c4e39495
Add the kali user to the adm group
So that the kali user can run `journalctl` or read log files in
`/var/log`, without the need for sudo.

Fixes: #31
4 years ago
Arnaud Rebillout b7e6996a5d Make sure that the wireshark group exists
This it to be consistent with bin/kali-finish-install, where we also
create the wireshark group.
4 years ago
Steev Klimaszewski 11dfdae854
Install wireshark setuid
This installs wireshark setuid and also adds the kali (or user chosen during installation) to the wireshark group.
4 years ago
Steev Klimaszewski 5bc39dd148 kali-user-setup: Add kali user to dialout group
This adds the kali user to the dialout group for serial port access on live images as well.
4 years ago
Raphaël Hertzog df945dd71b
Don't tweak the SSH config if persistence is enabled
And also ensure we run the initial configuration only once so that
the user can override our initial changes.

Fixes #22
4 years ago
Raphaël Hertzog 5989ec37de
Also set zsh by default for the root user 4 years ago
Raphaël Hertzog 208c080989
Ensure initial user is part of kaboxer group 4 years ago
Raphaël Hertzog 7ec405792b
Enable zsh by default 4 years ago