Prevent delete or move file / directory but if you can create, edit ... etc a user in Ubuntu (linux ???)

2

I am new to the forum and to Ubuntu and I wanted to ask you if there is a possibility to prevent a specific user from deleting or moving a file / directory but if you can create, edit files / directories. In other words, we want to enable full write permission but to prevent access to delete. I work in a company where there are executives, they need to send information to the server every so often and we want to prevent them from deleting it (when they are fired for example).

We have Ubuntu Server 16.04 LTS.

We have WINSCP on the computers with windows so that they can enter the sftp server (in Ubuntu) without any problem and they can save their files.

Install lshell trying to limit the rm and mv command but only affect the console not the file transfer programs.

Is there an alternative to solve my problem?

    
asked by aydaroo 02.04.2018 в 17:52
source

1 answer

-1

The closest thing to what you're looking for would be to use the sticky bit. From the Wikipedia :

  

When assigned to a directory, it means that the elements that   there in that directory can only be renamed or deleted by the   owner of the item, the owner of the directory or the user   root, although the rest of users have writing permission and, for   Therefore, they can modify the content of these elements

chmod +t <ruta_del_directorio>
    
answered by 02.04.2018 в 18:18