How to set the permissions for SFTP user in redhat linux?

0

We have a sftp server on our Linux server, I noticed that the ssh users are the same as sftp users, but the ssh users can be given the permissions like in chmod that are read/write/execute, but we want to distinguish write from delete permissions (like in FileZilla FTP server on windows which give you the control of given Write-Read-Delete-Append for files and Create-Delete-List-Sub folders for folders)

So the question is: is is possible to configure (read and delete) only permissions for sftp users?

Mosty Amine

Posted 2016-09-06T07:18:25.920

Reputation: 23

use chmod on directories? – Orphans – 2016-09-06T07:19:13.017

@Orphans using chmod will allow me just to control read-write there is no distinguishing between write and delete. – Mosty Amine – 2016-09-07T06:23:26.570

Well, if you don't have write permission on a file - you can't delete it. Thats SSH for you :) – Orphans – 2016-09-07T08:53:00.500

So, no work around or something? – Mosty Amine – 2016-09-08T05:47:29.713

I am afraid there is none yet. Because SFTP and SSH is the same. Just different name – Orphans – 2016-09-08T07:38:49.243

@Orphans, can I have a formal answer for this information ? – Mosty Amine – 2016-09-15T11:48:32.877

SFTP and SSH is the same protocoll. There is nothing more to add. – Orphans – 2016-09-15T13:31:12.777

@Orphans thank you, can you please answer the question so I can choose your answer as accepted. – Mosty Amine – 2016-09-19T06:48:50.870

Answers

1

SFTP is actually the same as SSH. Both use SSH as their protocoll.

Basically: SFTP is SSH - but for filetransfers and simplified.

Orphans

Posted 2016-09-06T07:18:25.920

Reputation: 177