toolbox/src/cmd
Debarshi Ray b1b1d459ed cmd/initContainer: Simplify removing the user's password
It's one less invocation of an external command, which is good because
spawning a new process is generally expensive.

One positive side-effect of this is that on some Active Directory
set-ups, the entry point no longer fails with:
  Error: failed to remove password for user login@company.com: failed
      to invoke passwd(1)

... because of:
  # passwd --delete login@company.com
  passwd: Libuser error at line: 210 - name contains invalid char `@'.

This is purely an accident, and isn't meant to be an intential change to
support Active Directory.  Tools like useradd(8) and usermod(8) from
Shadow aren't meant to work with Active Directory users, and, hence, it
can still break in other ways.  For that, one option is to expose $USER
from the host operating system to the Toolbx container through a Varlink
interface that can be used by nss-systemd inside the container.

Based on an idea from Si.

https://github.com/containers/toolbox/issues/585
2023-08-24 21:03:52 +02:00
..
completion.go Unbreak sorting and clearly identify copied images in 'list' 2022-12-12 21:49:21 +01:00
create.go Report the size of the image that will be downloaded from a registry 2023-03-14 01:05:50 +01:00
enter.go Update copyright notices 2022-11-28 21:01:18 +01:00
help.go Update copyright notices 2022-11-28 21:01:18 +01:00
initContainer.go cmd/initContainer: Simplify removing the user's password 2023-08-24 21:03:52 +02:00
list.go Unbreak sorting and clearly identify copied images in 'list' 2022-12-12 21:49:21 +01:00
rm.go Update copyright notices 2022-11-28 21:01:18 +01:00
rmi.go Unbreak sorting and clearly identify copied images in 'list' 2022-12-12 21:49:21 +01:00
root.go cmd/create, cmd/root, cmd/run: Tweak the debug logs for consistency 2023-03-08 00:18:46 +01:00
root_test.go cmd/run, root: Exit with exit code of invoked command 2022-03-21 00:05:45 +02:00
rootDefault.go Update copyright notices 2022-11-28 21:01:18 +01:00
rootMigrationPath.go Update copyright notices 2022-11-28 21:01:18 +01:00
run.go cmd/create, cmd/root, cmd/run: Tweak the debug logs for consistency 2023-03-08 00:18:46 +01:00
utils.go cmd/utils: Handle space-separated input when asking for confirmation 2023-03-27 09:28:14 +02:00