LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-13-2004, 04:58 PM   #1
synna
Member
 
Registered: Jan 2004
Posts: 40

Rep: Reputation: 15
Question [resolved] user specific file access permission


Hi,

I'm writting a programming game (a game where you program bot that will fight each other ,something like Robocode, see robocode.net) where you have to write a dynamic library that will be executed in order to control a robot.

The problem is that I don't want to check the code given by each participant. I wan't to do something like a security box. I thought maybe it's possible to run the program under a specific user. This user should :

Only access one directory (all other directory closed even for reading) and the files in it
Don't use network connection (localhost is okay).
If possible write until the directory reach a specific size (like 2MB).

If I don't do it there will be a serious security problem in the application.

Thank you very much in advance.

Synna

PS : Sorry for my bad english

Last edited by synna; 01-14-2004 at 08:27 AM.
 
Old 01-13-2004, 10:08 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
I'm not quite sure I understand in terms of the application (the robocode part) what you're trying to do, but from your description of the users environment, I think what your looking to setup is to chroot the users or the application itself into their home directories (or the applications root dir). Unspawn put together a good set of links on how to set one up. Checkout this post of the Security references thread:

http://www.linuxquestions.org/questi...598#post222598
 
Old 01-13-2004, 10:35 PM   #3
synna
Member
 
Registered: Jan 2004
Posts: 40

Original Poster
Rep: Reputation: 15
And that's exactly what I wanted to do...

Thanks a lot !!!!

Synna
 
Old 01-13-2004, 11:53 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
No problem. Good luck with your program.
 
  


Reply



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
permission problems: access Win as user digitalhead Slackware 19 07-24-2005 04:26 AM
Setting permission, file access. Apogeal1 Linux - Newbie 5 06-20-2005 08:17 PM
allow specific user to access yahoo messenger mcalizo Linux - Networking 0 10-06-2004 12:14 AM
fstab: giving a user acct read-only access to specific partition doorbits Linux - General 4 05-18-2004 02:11 PM
file/directory access permission question correro Linux - General 4 05-22-2003 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:36 PM.

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
Open Source Consulting | Domain Registration