This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Administrator privilege required | |
fsutil FILE createNew "%1" "%2" | |
fsutil FILE setValidData "%1" "%2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 2014-02-26 custom script for adding user on servers. | |
# Ubuntu servers were not shipped with `adduser` back then. | |
# For newer versions of Ubuntu, use `adduser` instead. | |
sudo su | |
useradd $1 | |
passwd $1 | |
cd /home | |
mkdir $1 | |
cd $1 |