- Create user :
$ sudo /etc/sbin/useradd namefouser
- Setting user password "
$ sudo /etc/bin/passwd nameofuser
- Allow user to ssh
$ sudo vim /etc/ssh/sshd_configThere's some way to allow user to execute command :
- Add user to sudoers
$ sudo /etc/sbin/visudo
- Add user to wheel group which is wheel is a group that sudoers allowed group.
$ sudo /etc/sbin/usermod -a -G wheel namefouser