LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file browser for particular folder only (https://www.linuxquestions.org/questions/linux-newbie-8/file-browser-for-particular-folder-only-646588/)

kkpal 06-03-2008 01:52 AM

file browser for particular folder only
 
hi all

I want to create a file browser for particular folder only.
let, that folder is /tmp/test/.
i want to create a browser that browse files and directories inside "test" folder only not outside that directory.
How can I create?
Is it possible in gtkdialog or Xdialog? or you can make using some other tool plz let me know.


Thanks & Regards
KKPal

unSpawn 06-04-2008 10:02 AM

Maybe it could help if you could tell what the purpose of this should be?

kkpal 06-05-2008 12:44 AM

hi

I making application in which user may access their files from his USB drive only. When he plug USB device in my hardware a browser will open and he can access their files only not the system files.


Regards
KKPal

unSpawn 06-05-2008 07:32 PM

Unprivileged user processes have access to say /etc to read configuration files. If the access rights are OK then they should not be able to say read or modify /etc/shadow. So accessing system files should not be a problem. To keep them from looking anyway you have multiple options, depending on what penalties can handle in terms of CPU, I/O or filesystem size performance, customisation, etc, etc. In general you have five options: virtualisation, chroot, rule based access, intercepting syscalls and kiosk mode. The first four are only mentioned to be complete, because for running a single instance of Xdialog or Zenity they are way overkill, while Kiosk mode (KDE URL Restrictions in the kdeglobals resource file) is not invasive but only works if you use KDE, obviously. If that doesn't work for you you might as well hack some static paths into some custom UI.


All times are GMT -5. The time now is 06:16 PM.