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:

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...