https://github.com/magnitopic/born2beroot
System administration project using virtual machines
https://github.com/magnitopic/born2beroot
42born2beroot 42cursus crontab ssh system-admin ufw-firewall users virtual-machine
Last synced: 3 months ago
JSON representation
System administration project using virtual machines
- Host: GitHub
- URL: https://github.com/magnitopic/born2beroot
- Owner: magnitopic
- Created: 2022-12-16T18:23:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T12:10:42.000Z (over 2 years ago)
- Last Synced: 2025-01-19T13:56:08.139Z (9 months ago)
- Topics: 42born2beroot, 42cursus, crontab, ssh, system-admin, ufw-firewall, users, virtual-machine
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Born2beroot
These are some commands that will be usefull during the evaluation of the born2beroot proyect.
## Machine signature
Get the machine signature in *sha1* format
```
shasum born2beroot.vdi
```## Graphical Interface
Checks if a graphical interface is installed
```
ls /usr/bin/*session
```Expected output for no GUI: `/usr/bin/dbus-run-session`
## System details
Show system details
```
uname -a
```## Sudo
Check that sudo is installed
```
apt-cache policy sudo
```Check the strong configuration for sudo
```
cat /etc/sudoers.d/sudo_config
```## Partitions
See partitions
```
lsblk
```## SSH
Service is runing
```
service ssh status
```Configuration file
```
/etc/ssh/sshd_config
```Connect via SSH
```
ssh alaparic@localhost -p 4242
```## UFW _(Uncomplicated FireWall)_
Configure port rule
```
ufw allow
```Delete port rule
```
ufw delete
```See opened ports
```
ufw status numbered
```## Users and groups
Create a new user
```
adduser
```Create a new group
```
addgroup
```Add user to group
```
adduser
```Check which groups a user belongs to
```
groups
```Check password rules in users
```
chage -l
```## Password policy
See password policy
```
vim /etc/pam.d/common-password
```See password expiration
```
vim /etc/login.defs
```## _hostname_
Check current hostname
```
hostname
```### Change the hostname
Chnage the current value for the new login in these two files
```
vim /etc/hostname
``````
vim /etc/hosts
```## Password policy
Open the configuration file
```
vim /etc/pam.d/common-password
```## Crontab
Open the crontab config file
```
crontab -u root -e
```Start / Stop
```
/etc/init.d/cron start/etc/init.d/cron stop
```