Thursday, July 23, 2020

How to set Jenkins user as root


to set root user for Jenkins to follow below steps for CentOs


1. Open up the script 
vim /etc/sysconfig/jenkins
2. Find this $JENKINS_USER and change to “root”:
$JENKINS_USER="root"
3. Then change the ownership of Jenkins home, webroot and logs:
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
4) Restart Jenkins and check the user has been changed:
service jenkins restart

DevOps Project | terraform Jenkins AWS EC2 | Infrastructure as Code

Saturday, July 11, 2020

Create New User in EC2 Ubuntu |Create Sudo User | How to Become Root Use...

Create a New Sudo User in AWS EC2 (Ubuntu AMI)

Create a New Sudo User in AWS EC2

(Ubuntu AMI)

Log in your Ec2 Instance using “ec2-user”
ssh ec2-user@<ip> -i <ssh key>
 Log in to your server as the root user.
ubuntu@ip-172-31-24-53:~$ sudo -i
root@ip-172-31-24-53:~#
 Use the adduser command to add a new user to your system.
adduser <username>
root@ip-172-31-24-53:~# adduser test


Set and confirm the new user’s password at the prompt. Use 
strong password to secure account
root@ip-172-31-24-53:~# passwd test
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Use the usermod command to add the user to the sudo group.
usermod -aG sudo username
root@ip-172-31-24-53:~# usermod -aG sudo test
By default, on Ubuntu, members of the sudo group have sudo privileges.
Test sudo access on new user account
Use the su command to switch to the new user account.
root@ip-172-31-24-53:~# su test
su - username


As the new user, verify that you can use sudo by prepending “sudo” to the command
that you want to run with superuser privileges.
test@ip-172-31-24-53:/root$ sudo ls -la /root

Thursday, July 9, 2020

Installing JFrog Artifactory on CentOS / RHEL 7

Installing JFrog Artifactory on CentOS / RHEL 7


Artifactory is a universal repository manager created by JFrog.
A repository manager is a software application designed to manage binary
components related to an application. Being a universal repository manager,
Artifactory supports all major packaging formats like Apache Maven, Gradle,
Docker and many more.



# Upgrade to Java-8
sudo yum install java-1.8.0
sudo yum remove java-1.7.0-openjdk
#Setting up JAVA_HOME Environment Variable
echo "export /
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64"/
>> /etc/profile

. /etc/profile
env | grep JAVA
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64

# Installing Artifactory
wget https://bintray.com/jfrog/artifactory-rpms/rpm -O /
bintray-jfrog-artifactory-rpms.repo


sudo mv bintray-jfrog-artifactory-rpms.repo /etc/yum.repos.d/
sudo yum install jfrog-artifactory-oss
echo "export ARTIFACTORY_HOME=/opt/jfrog/artifactory" >> /etc/profile
. /etc/profile
env | grep ARTIFACTORY_HOME
ARTIFACTORY_HOME=/opt/jfrog/artifactory

# Setup Service
sudo service artifactory start

Ethical Hacking Techniques: Cracking WPA/WPA2 Wi-Fi Using WPS and Capturing Handshakes

In the realm of cyber security, ethical hacking plays a crucial role in identifying and addressing vulnerabilities. One of the areas where e...