Linux.com

Control user access to a folder

Link to this post 20 Feb 11

Hi everyone

I currently use ubuntu 10.10 which i have installed on a usb stick

I have an application installed under the directory /home/ubuntu/MyApplication

Inside the application folder there is a launch.sh script which launches the application. I have created a symbolic link on the desktop which calls /home/ubuntu/MyApplication/launch.sh that launches the application from the desktop

The usb stick will be shared between a number of users. I want the other users to be able to launch my application, but i don't want them to be able to view or copy the content of /home/ubuntu/MyApplication which contains application data

I set up a Private directory using ecryptfs-utils and i placed the content of /home/ubuntu/MyApplication inside the private directory

ecryptfs-setup-private

The problem i'm having is that after a restart when i log on and try to launch the application through the symbolic link on the desktop, i get a file not found error, because at this moment the Private directory is not mounted.

When i mount the Private directory than the content inside the Private directory becomes readable.

I want the users to be able to launch the application through the shortcut on the desktop but at the same time i want the content of the Private folder to remain encrypted(don't want them to copy, view or modify the files)

Any suggestions are more then welcome

Thanks,

El

Link to this post 21 Feb 11

Unfortunately the users need to be able to read the contents of the directory to launch your application, there is no solution that would allow them to only read those files while in the application.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board