Answer the question
In order to leave comments, you need to log in
Ubuntu: how to set root folder for file select dialog?
Good day!
There is an offline version of the site for printing photos, designed for the user to go to the terminal (touch panel), insert a USB flash drive and select from it the photos that he wants to print.
Problem: How to upload photos? If you give the user a file selection dialog, then he can climb into any folder and drop the system.
You can immediately upload all the photos from the flash drive to the site, but most users have a panic "where is he copying my entire flash drive?".
Solutions: for the dialog box: I'm wondering if it's possible to set the user's root directory? those. he opened the file selection dialog, and his flash drive is open in his dialog and does not allow him to go back through the hierarchy. How can this be done and is it possible at all? Do you have any other ways to solve this problem?
Answer the question
In order to leave comments, you need to log in
1. in *NIX - a user cannot drop the system if he is not rooted
2. Have you ever heard of chroot ?
skorpix
"Yes, I agree, it won't be able to drop it, but it can copy the source code of the site, in short, it can do harm."
You would have left the bank-client on a public PC.
In XFCE there is a kiosk mode, leave the mount on the desktop of the flash drive, in thunar it will hide / configure as you need. And then according to the circumstances.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question