Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

Matthew N. Sharp

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed 

add user in os x or os x server with NetInfo

Adding an OS X/OS X Server user with NetInfo. Antiquated by servermrg, but still functional.

niutil -create . /users/fred
niutil -createprop . /users/fred gid [groupID]
niutil -createprop . /users/fred uid [uniqueNumberOver1000]
niutil -createprop . /users/fred shell /bin/tcsh
niutil -createprop . /users/fred home /Users/fred
niutil -createprop . /users/fred realname "fred jones"
niutil -createprop . /users/fred passwd '*'
mkdir /Users/fred
mkdir /Users/fred/.ssh
chown -R fred /Users/fred
chgrp -R [groupID] /Users/fred
chmod 755 /Users/fred

ssh tunnel

Quick syntax example for ssh tunelling.
ssh -l username -L
« Newer Snippets
Older Snippets »
2 total  XML / RSS feed