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:

install winrar on CentOS 6.x

Steps to install  WinRar  on Cent Os machine in order to un-rar a rar archive transferred from windows machine. Download Links For L...