Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Intranet search engine. Users should only see results they have access to.

Posted on 2004-12-01
2
Medium Priority
?
177 Views
Last Modified: 2010-04-01
Hello,

I'm working on a little search engine project. The search engine should indicate all files (through a samba share) stored in the file server (Linux). The users (WinXP/Linux) should have the ability to search in this index via a JSP. After the search is complete, the users get a list with some links, so they are able to access the files with just a klick on it. But, of course, the users should only receive links of files they have access to. And exactly this is my problem. How is it possible to check the file permissions?
Is it possible to use WebDAV?
Should I use some C funtions and JNI?

Every suggestion is welcome.

Thanks!!
0
Comment
Question by:muetze303
2 Comments
 
LVL 4

Accepted Solution

by:
gdrnec earned 375 total points
ID: 12787591
I would to a Runtime.getRuntime().exec("ls -al") in the correct directory and parse the Process's InputStream for the User and Group permissions for that file, compare them to the user requesting the file and weed out the invalid or not permitted files.

Geoff
0
 

Author Comment

by:muetze303
ID: 12818124
Thanks a lot for your help. I thinks it is not the most elegant solution, but it works just perfect.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Conducting a customer service survey used to be as straightforward as sending a template email out using checkboxes and numerical rating systems to measure satisfaction.
Welcome to 2018! Exciting things lie ahead in the world of tech. To start things off, we compiled great member articles on how to stay safe, ways to learn, and much more! Read on to start your new year right.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question