Specific Permissions For A Python Script
Posted 09 November 2012 - 09:39 AM
Everything works perfectly. The only problem is that script file can access other directories and mess with things. The script deals with only 2 files, "input" and "output". How can I make such thing? Any instructions?
Any help is much appreciated Thanks.
Posted 09 November 2012 - 09:43 AM
Posted 09 November 2012 - 10:52 AM
Edited by TheNavigator, 09 November 2012 - 10:53 AM.
Posted 10 November 2012 - 04:01 AM
The idea of someone being able to upload a script sounds dodgy, what exactly are you trying to do?
Posted 15 November 2012 - 03:09 AM
It's something very advanced and complicated (as reported by experts who are responsible for the informatic olympiads here. For me it wasn't that hard). An algorithm server.
Ever heard about Codeforces, TopCoder, USACO, Z-Training, etc. ? The international olympiad for informatics?
For your reply, that means I need to turn that "python script" into a service then. True?
Edited by TheNavigator, 15 November 2012 - 03:11 AM.
Posted 16 November 2012 - 01:48 AM
The user I use, although it's a sudoer, but without using sudo commands it can play with stuff, make files here and there, delete some files, etc.
How can I prevent this so the only directory the user can access is the one I specify it for him?
Posted 16 November 2012 - 04:54 AM
There is no simple one stop quick fix, it's just typical sys admin stuff. Can you be specific about where it is your stuck or what it is you don't understand?
Posted 01 December 2012 - 08:37 AM
I guess I need more experience :|
Posted 02 December 2012 - 07:30 AM
I know it's stupid, but I didn't know so because I rarely used a Linux system with multiple users
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users