1

I have a Linux Debian machine that I own (root access).

I would like to create a new user called "testuser" and give him the right to view, edit and delete files from only one specific folder located in

/var/www/html/specificfile

I do not mind if the user can see which other files exist in /var/www/html/ (or anywhere else). But the user definitely can only view, edit and delete the files contained in the folder /var/www/html/specificfile.

The user ("testuser") isn't created yet.

How do I perform this action?

The user will access the machine only over FTP.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175

1 Answers1

1

Create a hard link to the file... Hard and Soft link reference: The Ultimate Linux Soft and Hard Link Guide | The Geek Stuff

You can approach this several different ways, here might be the two common ways:

  1. Create a directory that the user has access to upon ftp login (users root ftp directory) and created the link there.
  2. Create the link in the users home directory and link the file in the users home directory.