Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

UNIX – Create New User & Add To Group

Posted on August 5, 2016 By David Kittell
username="dkittell"
usergroup="developers"
useradd $username && passwd $username
# Set initial password

# Force user to change password once logged in
chage -d 0 $username

groupadd $usergroup
usermod -aG $usergroup $username
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

CentOS Code Fedora Red Hat UNIX UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

Bash – Download YouTube Music

Posted on August 7, 2018June 30, 2019

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl sudo apt update sudo apt upgrade -y sudo apt install youtube-dl python ffmpeg net-tools -y # Install YouTube Downloader CLI brew install youtube-dl ffmpeg # https://github.com/rg3/youtube-dl # Download YouTube video, convert the video to MP3 and delete the original video…

Read More

Add Column If Does Not Exist

Posted on November 12, 2013October 26, 2015

This code will assist in helping you create a column should it not already exist. IF COLUMNPROPERTY(OBJECT_ID(‘dbo.address’), ‘zip4’, ‘ColumnId’) IS NULL BEGIN ALTER TABLE address ADD zip4 INT NULL END Originally Posted on November 12, 2013Last Updated on October 26, 2015 All information on this site is shared with the…

Read More

Mac OSX Terminal – Find & Scan Wireless Networks

Posted on May 27, 2016

First create symlink sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport Once the Symlink is in place you can scan for Wi-Fi airport -s Referenced From: http://osxdaily.com/2012/02/28/find-scan-wireless-networks-from-the-command-line-in-mac-os-x/ All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes