#!/bin/bash if [ "$(id -u)" = "0" ]; then echo "Cannot be run as root, or with sudo" exit fi sudo rtsetpass $LOGNAME