Skip to main content

Log as project owner

Apache-ITK (see here) is a module that allows you to have one user and one group by VirtualHost.  
Having to surrender the rights to every modification of the project is quite repetitive.  
Here's how to have a terminal with the user who owns the project :

  1. Connect to server with SSH  
  2. Log as root user by typing the following command : sudo -s  
  3. Log as the project owner : sudo -u project_owner -s   
    Example if the owner is "expert-it": sudo -u expert-it -s  
    To know the owner, run the ls -l command on the project directory.

Here is more details on these two commands :  

That's it. You have now a terminal with the owner of the project.

Terminal :  Apache-ITK

Which rights to apply to a project managed with Apache-ITK?

We recommend using the following rights for a project : 

  • For directories : 750 (find . -type d -exec chmod 750 {} +)  
  • For files : 640 (find . -type f -exec chmod 640 {} +)
Let's discuss your project

Contact us

  •  + 32 (0) 10 49 51 00