Commit Graph

16 Commits

Author SHA1 Message Date
Clemens Schwaighofer
74bfded26f Add logging to check last login script
Logging of all output to log/ folder for check last login script user.
Also for delete, user script now outputs move from ssh allow to ssh
reject group.
2022-11-02 16:04:26 +09:00
Clemens Schwaighofer
37f9f4429d check users do not show delete from group if nothing has to be done 2022-11-02 15:16:22 +09:00
Clemens Schwaighofer
94a970d54b Update check user script output on problems 2022-11-02 15:11:26 +09:00
Clemens Schwaighofer
c09e8cf799 AWS accunt scripts, deploy akamai scripts
A new last logged in, last created script has been added to check which
users we have to disable.
- checks in group sshallow
- if last login older than 60days, remove account from ssh group
- if we have account create date, check if never logged in and older
  than 30 days, remove account from ssh group
Both dates can be set separate

Update create script to add create date in Y-m-d (%F) format as
comment to the passwd file
Also add user to sshallow group (group always exists, is created on
server creation)
2022-11-02 15:02:17 +09:00
Clemens Schwaighofer
a15541c86b Fix pub key check for info display v0.7.2 2022-03-28 15:01:46 +09:00
Clemens Schwaighofer
12d8d57bd2 Moved script into wrong folder v0.7.1 2022-03-28 14:58:42 +09:00
Clemens Schwaighofer
18b544a1a4 More info on -i flag v0.7.0 2022-03-28 14:56:16 +09:00
Clemens Schwaighofer
4914e3f367 Update documentation in user create script
Still used old key value separator and was missing new added
user_list.txt file blocks
2022-03-15 14:18:04 +09:00
Clemens Schwaighofer
12ef307bdb Remove alert text if RSA type was selected 2022-03-10 11:14:53 +09:00
Clemens Schwaighofer
d13dd08855 Update -t test option flow, added -i info option
-t test will NOT create an ssh key anymore. The user password list file
gets a .TEST extension

-i info is a new option to just show user/group and ssh key name without
creating anything at all.
Can be used to update old public key names to new format
2022-03-10 11:12:18 +09:00
Clemens Schwaighofer
2e8c30a704 Minor readme updates 2022-03-09 17:42:16 +09:00
Clemens Schwaighofer
c2bdc6c345 Readme update v0.6.0 2022-03-09 15:34:42 +09:00
Clemens Schwaighofer
971f9afdd5 Update user creation with keeping public key on the server
With this I can check if I have added that key already to avoid ssh key
double creations
2022-03-09 15:27:46 +09:00
Clemens Schwaighofer
6ce9b40565 Update AWS user create
Has now -t option to turn test on off via command line.
If test is on no user or groups are created, only SSH keys and the zip
file.

Standard ssh key type is now ed25519 and the password gets set with -a
100 flag.

After creation all data is ziped into the zip/ folder for download and
all PEM/PUB/password files are deleted from the folder.

The old user_zip.sh file has been removed because of this.

The script now checks for zip program and zip/ folder existing.
Also base folder must be 600 and root set

The user list file has an update for host name override after the
password file.
If this is set then the server hostname will not be used for file names.
The file name is also back to include the host name but the type changed
to have "#" as separator (can be changed in file) and also ads the ssh
key type to the file
2022-03-09 14:52:14 +09:00
Clemens Schwaighofer
1475bd0438 Add git ignore file control folders v0.5.0 2021-12-14 09:24:42 +09:00
Clemens Schwaighofer
95451f2e46 User creation scripts for aws servers 2021-12-14 06:50:13 +09:00