Created
November 26, 2016 04:03
-
-
Save zhengxiaowai/f04e6d95b7d117a8133402008ff15d76 to your computer and use it in GitHub Desktop.
root 添加用户,自动添加用户目录
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 | |
username=$1 | |
useradd -m -s /bin/bash $username | |
usermod -aG sudo $username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment