Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am aholbreich on github.
  • I am aholbreich (https://keybase.io/aholbreich) on keybase.
  • I have a public key ASAZ6F-Uilt18XB72KXJb4zflFtL3bQCHAHQLJjE5JQzWAo

To claim this, I am signing this object:

@aholbreich
aholbreich / newuser.sh
Created April 1, 2019 17:28
Linux: newuser.sh
#!/bin/sh
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -p "Enter userkey : " userkey
egrep "^$username" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
#!/usr/bin/perl
#######################################################################
#
# jnc: a wrapper for the Juniper network connect client (ncsvc)
# Copyright (C) 2009-2014 Klara Mall, klara.mall@kit.edu
# Version: 0.19
#
# Documentation:
# http://www.scc.kit.edu/scc/net/juniper-vpn/linux/