LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2008, 01:52 AM   #1
kkpal
Member
 
Registered: Oct 2007
Posts: 101

Rep: Reputation: 15
Lightbulb 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
 
Old 06-04-2008, 10:02 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,338
Blog Entries: 55

Rep: Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538
Maybe it could help if you could tell what the purpose of this should be?
 
Old 06-05-2008, 12:44 AM   #3
kkpal
Member
 
Registered: Oct 2007
Posts: 101

Original Poster
Rep: Reputation: 15
Lightbulb

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
 
Old 06-05-2008, 07:32 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,338
Blog Entries: 55

Rep: Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
save web page results in a file and a folder. Whats the folder for? geeyathink General 2 01-30-2008 06:57 AM
create a folder/file within a folder using perl indu.a Programming 2 03-07-2007 10:09 PM
Fedora Core 4 - how to get file browser to open by double click on home folder nickleus Linux - General 2 01-24-2006 02:36 AM
File manager/folder browser alternative? ExCIA Linux - Software 4 06-07-2005 07:56 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration