@brundle said in Change SSH shell:
OK. The admin account has the same UID and GID as root in /etc/passwd. Am I right to assume that it has the same privileges?
Yes, they do, they are equivalent, but have some (necessary) differences in how they act at the OS level. The admin account is locked into the menu for its shell, root is not. The root account starts the menu at login but isn't locked to it in the same way. This is important for the console autologin process.
I don't want to have to create public/private keys for the admin account to put on every system I have, instead I would like to use my regular user account and my regular private key. Once logged in I want the exact same behaviour and privileges as for the admin account. Is this possible?
Only by using sudo as with any other *nix system. This isn't a special case, it works like any other BSD/Linux/whatever server.
You could put your existing keys into the admin account in the GUI and just ssh into that if you like (it would work for root@ and admin@) though it is better to use your own account if you're already used to that. You still have to setup the account and keys in the GUI, though.
I'm considering just copying the UID, GID and Shell fields from the admin line of /etc/passwd, but I worry that might break something. Any advise?
That won't persist without editing the source to control how the accounts are generated, and is completely unnecessary.