apunkabollywood
asked on
How to disable deleting file after uploading in sftp
I have configured sftp on my system but want to disable users to not to delete it after uploading.
here is the configuration.
sshd_config
Match Group abcd
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /data/inftp/abcd
ForceCommand internal-sftp
here is the configuration.
sshd_config
Match Group abcd
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /data/inftp/abcd
ForceCommand internal-sftp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is being deleted?
ASKER
Hi All,
I am sorry , I agree applying sticky bit , But still after applying that user can delete the newly uploaded file.
Is there something we can restrict commands in sftp?
I am sorry , I agree applying sticky bit , But still after applying that user can delete the newly uploaded file.
Is there something we can restrict commands in sftp?
If you can post the permission of the directories (ls -lah) perhaps we can determine what is wrong.
You can disable commands in ftp but I cannot think of a way to prevent users running commands via sftp session since it is a extension of the ssh protocol.
You can disable commands in ftp but I cannot think of a way to prevent users running commands via sftp session since it is a extension of the ssh protocol.
ASKER
Thanks Mazdajai !
Now I configured FTPS :) , so that can apply command restrictions.
All working fine , But now I am facing upload error.
Response: 553 Could not create file.
Error: Critical file transfer error
SElinux disabled, Please let me know if you need more details.
Now I configured FTPS :) , so that can apply command restrictions.
All working fine , But now I am facing upload error.
Response: 553 Could not create file.
Error: Critical file transfer error
SElinux disabled, Please let me know if you need more details.
Sftp is something else. Is ftps working?
ASKER
Thanks all for ur help its working with ftps configured