FTP access to a folder



create folder eg mkdir hrmis
create user: useradd pkyalo
add user password: passwd kyalo
create group eg: groupadd hrteam
Note the -g here. When you use a lowercase g, you assign a

Add an Existing User Account to a Group

usermod -a -G hrteam pkyalo



Add folder to a group and give write rights
Folder hrmis will first need to be part of group hrteam - the folder's owner or root can perform this operation
From outside the folder
chgrp hrteam ./hrmis
Then groupA will need rwx permissions of the folder
chmod g+rwx ./hrmis

To find out which groups are assigned to a folder use ls -l


Comments