Saturday, 6 January 2018

Add linux user and allow specific directory for work

1. To add user harish
# useradd harish
2. Password harish
# passwd harish
3. To provide location
# nano /etc/passwd (And edit there )
harish:x:500:500:harish:/home/harish:/bin/bash
harish:x:500:500:harish:/var/www/projects/aplicativo.pbodev.info:/sbin/nologin
UN: harish
PW: KaLlA_Har!sh
/var/www/projects/aplicativo.pbodev.info

UN: dharam
PW: GuPta_Dh@ram
/var/www/projects/appcheap.pbodev.info
######################################################
usermod -g appypiedev rohit
useradd -g primarygroup_name user_name
######################################################

No comments:

How to install asterisk secure fail2ban

1)  rpm -Uvh  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm If this is already installed, skip this step. 2)  y...