martedì 10 gennaio 2023

Linux permission with WINSCP

 I find frustrating the way linux manage permissions and how to grant a folder permissions to upload file with winscp.


Now the best way I find to do that is:

1. create a group for a project folder and add users to it (this is not mandatory but a good way to work)

$ groupadd <group>

$ usermod -a -G <user> <group>

2. assign permission to folder to grant upload to ftp/winscp:

$ chmod o+rwx -R workfolder/  #This assign "others" rights to rwx, could be harmful in case of web application, be carefull!

$ chmod g+rwx -R workfolder/ #grant write to group

 

Nessun commento:

Posta un commento