Friday, March 6, 2020

Moving home directory in linux

Username: test
Environment : Linux

$usermod -d /usr/test -m test

## Here "test" is a user and /home/test is directory which will move from /home/test to /usr/test.

Monday, March 2, 2020

Ansible

Linux User Administration

Adding a user with UID to the group

useradd -c "comment" -u 801 -g group username;
chage -I -1 -m 0 -M 99999 -E -1 username;


Modify a existing user group
usermod -a -G group username

Removing a user from GROUP

gpasswd -d username group



My GIT Notes




git clone

git branch ( to see which branch you are in)

git show-branch ( to see which branch you are in)

git checkout branch
git add
git commit
git push -u origin

============================================================
error: The following untracked working tree files would be overwritten by checkout:
        xxxxxxxxxxxxxx
Please move or remove them before you can switch branches.
Aborting


git clean  -d  -f

============================================================

Sonarqube Upgrade from 9.4.4 to 9.9.4 LTS

 Issue:  1) Java hasbeen upgraded from 11 to Open JDK 17. And Sonarqube is upgraded from 9.4 to 9.9.4. 2) After the upgrade sonarqube servic...