FTP access to a folder
create folder eg mkdir hrmiscreate user: useradd pkyaloadd user password: passwd kyalocreate group eg: groupadd hrteam
Note the
-g here. When you use a lowercase g, you assign aAdd 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
Post a Comment