- Code: Select all
[root@go ~]# useradd test
[root@go ~]# groupadd test
groupadd: group test exists
[root@go ~]# gpasswd -a test test
Adding user test to group test
[root@go ~]# chgrp -R test /var/www/html/Leads/
[root@go ~]# chmod -R g+rw /var/www/html/Leads/
[root@go ~]# passwd test
Changing password for user test.
New UNIX password:
BAD PASSWORD: it is too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@go ~]#
I have created an user with
username : test
password: test
I have an Entry in password file as :
test:x:502:502::/var/www/html/Leads/:/bin/bash
How to give direct access to /var/www/html/Leads/ and "Nowhere Else" ?
I have NOT modified any conf file.