You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
For a particular implementation of aws-ec2-ssh, I wanted to override the defaults set in /etc/defaults/useradd. I still wanted "regular" invocations of useradd to respect them, mind you, but for users added via this solution, I wanted those users to specifically live somewhere else.
Furthermore, I noticed that the shell when the users are added from this script is hard-coded to /bin/bash. I figure, we ought to default to whatever the default shell is, but perhaps allow a config variable so that we can set a different default for people added via this script?
I'm thinking some kind of config variable called USERADD_OPTIONS, and you can add things like -b /my/custom/basedir (for my particular problem when I was using a funny homedir), or maybe --shell /bin/tcsh (for those who might want a non-default shell for their aws-ec2-ssh-controlled users).
(If you wanted both, I would think you'd want something like USERADD_OPTIONS="-b /my/custom/basedir --shell /usr/bin/zsh")
The text was updated successfully, but these errors were encountered:
For a particular implementation of
aws-ec2-ssh
, I wanted to override the defaults set in/etc/defaults/useradd
. I still wanted "regular" invocations ofuseradd
to respect them, mind you, but for users added via this solution, I wanted those users to specifically live somewhere else.Furthermore, I noticed that the shell when the users are added from this script is hard-coded to
/bin/bash
. I figure, we ought to default to whatever the default shell is, but perhaps allow a config variable so that we can set a different default for people added via this script?I'm thinking some kind of config variable called
USERADD_OPTIONS
, and you can add things like-b /my/custom/basedir
(for my particular problem when I was using a funny homedir), or maybe--shell /bin/tcsh
(for those who might want a non-default shell for theiraws-ec2-ssh
-controlled users).(If you wanted both, I would think you'd want something like
USERADD_OPTIONS="-b /my/custom/basedir --shell /usr/bin/zsh"
)The text was updated successfully, but these errors were encountered: