Ubuntu/Setup Server
From r00tedvw.com wiki
(Difference between revisions)
(Created page with "==Overview== Quick checklist of things to install while setting up a new LAMP server ==Security== ====SSH==== *Create new account and disable root access remotely") |
|||
Line 4: | Line 4: | ||
==Security== | ==Security== | ||
====SSH==== | ====SSH==== | ||
− | *Create new account and | + | *Create new account |
+ | <nowiki>~$ adduser newuser | ||
+ | Adding user `newuser' ... | ||
+ | Adding new group `newuser' (1000) ... | ||
+ | Adding new user `newuser' (1000) with group `newuser' ... | ||
+ | Creating home directory `/home/newuser' ... | ||
+ | Copying files from `/etc/skel' ... | ||
+ | Enter new UNIX password: | ||
+ | Retype new UNIX password: | ||
+ | passwd: password updated successfully | ||
+ | Changing the user information for newuser | ||
+ | Enter the new value, or press ENTER for the default | ||
+ | Full Name []: newuser | ||
+ | Room Number []: | ||
+ | Work Phone []: | ||
+ | Home Phone []: | ||
+ | Other []: | ||
+ | Is the information correct? [Y/n] y</nowiki> | ||
+ | |||
+ | *Add new user as sudo and sudoer group | ||
+ | <nowiki>~$ visudo | ||
+ | # User privilege specification | ||
+ | root ALL=(ALL:ALL) ALL | ||
+ | newuser ALL=(ALL:ALL) ALL</nowiki> |
Revision as of 00:47, 15 August 2015
Overview
Quick checklist of things to install while setting up a new LAMP server
Security
SSH
- Create new account
~$ adduser newuser Adding user `newuser' ... Adding new group `newuser' (1000) ... Adding new user `newuser' (1000) with group `newuser' ... Creating home directory `/home/newuser' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for newuser Enter the new value, or press ENTER for the default Full Name []: newuser Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y
- Add new user as sudo and sudoer group
~$ visudo # User privilege specification root ALL=(ALL:ALL) ALL newuser ALL=(ALL:ALL) ALL