Tag Archives: Shell Server

Manually adding users to a shell server

So if you’ve got to add users in manually (and can’t or are too lazy to connect to Active Directory, as I was), you’ve got two options.  One is correct.  The other is not.  For your sake.

UserAdd vs. AddUser.

UserAdd is a shell command all on its own.  It does one thing, and one thing only: add a user.  Well duh, right? That’s what you wanted, isn’t it? FALSE!

You also wanted to set the user’s password, give them a home directory, assign that home directory to their account, and add extra information such as their full name, email address, phone number, etc.

Well there’s some hope for you yet.  AddUser is a perl script that puts all of this data entry into one place.  The syntax is simple:

adduser Bob

From there, the script will prompt you to enter Bob’s password, to confirm, automatically add Bob to his own group, copy the requisite files into a newly created home directory for Bob (/home/bob), then give you options to enter in Full Name, Email, Office, etc, or just hit Enter to set them as default values.

Standing up a Shell Server

Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers that connects, via a secure channel over an insecure network, a server and a client (running SSH server and SSH client programs, respectively).

The best-known application of the protocol is for access to shell accounts on Unix-like operating systems, but it can also be used in a similar fashion for accounts on Windows. It was designed as a replacement for Telnet and other insecure remote shell protocols such as the Berkeley rsh and rexec protocols, which send information, notably passwords, in plaintext, rendering them susceptible to interception and disclosure using packet analysis. The encryption used by SSH is intended to provide confidentiality and integrity of data over an unsecured network, such as the Internet.