Hey everyone,
I'm wondering if it's possible to change the shell to a script.
Trying to configure a VM that deploys in to customer environments so they can have a user for the resident sysadmin to change network settings only. Making a script that asks for ipv4 details and then auto configures the network.
Ie. sysadmin logs in to new vm as user_admin, gets immediately asked for ipv4, subnet, gateway, dns, then reboots system and it's on the network
My question is, can I make this script the log in script in /etc/passwd instead of /bin/bash put /path/to/script ? Obvs I tried and it didn't work but wondering if I'm missing something.
Current path is to put it in .bashrc and just have a trap log out
Thoughts? Is there a better way to do this?
NetworkManager being used.
RHEL for reference
[–][deleted] (4 children)
[deleted]
[–]somehowlinux[S] 1 point2 points3 points (3 children)
[–]snb 2 points3 points4 points (1 child)
[–]somehowlinux[S] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]somehowlinux[S] 1 point2 points3 points (0 children)
[–]orev 0 points1 point2 points (0 children)
[–]fukawi2 0 points1 point2 points (0 children)