Posts By Ankan Basu

Linux Run Level Reference

, , No Comment

ID Name Description 0 Halt Shuts down the system. 1 Single-user mode Mode for administrative tasks. 2 Multi-user mode Does not configure network interfaces and does not export networks services. 3 Multi-user mode with networking&hellip

Read Post →

Adding users and groups in linux

, , No Comment

Adding users: # create a new user sudo adduser wonderfulperson sudo useradd wonderfulperson # udpate password sudo password wonderfulperson # batch add users. vi addmultipleusers # add the test content below # username:passwd:uid:gid:full name:home_dir:shell user1:user1password:::User1:/home/user1:/bin/bash&hellip

Read Post →

Vulnerability Assessment

, , No Comment

Vulnerability Assessment – Find vulnerabilities in a system or network – Better than just a port scanner. – Generally considered to be least intrusive. – Penetration testing / port scanning is considered more intrusive. Example:&hellip

Read Post →

Set up a VM using Vagrant

, , No Comment

# Install vagrant. #create a directory to work on vagrant mkdir learnPlaybooks cd learnPlaybooks # use vagrant to create a test virtual machine vagrant init ubuntu/trysty64 A `Vagrantfile` has been placed in this directory. You&hellip

Read Post →

Git Stash Commands

, , No Comment

Most common commands that I use. Self-explanatory. Save and List Stash git stash save “Some message” git stash list # stash is available to all branches. git stash show stash@{0} git stash show -p stash@{0}&hellip

Read Post →

.gitignore file

, , No Comment

Ignoring files in git using .gitignore ====================================== create a .gitignore file and put it in the root of a git project. Typically ignore: -Compiled source code -Packages and compressed files -logs and databases that changes&hellip

Read Post →