Re: Running Python scripts under a different user

2006-05-31 Thread Mikael Olofsson
Laszlo Nagy wrote: For Windows, you can use the 'runas.exe' program. But it requires a password too. Or you can get a copy of the shareware program RunAsProfessional, which I use for my kids stupid games that necessarily has to be run by an admin. The price I paid was 10 Euro, which I still

Re: Running Python scripts under a different user

2006-05-29 Thread Laszlo Nagy
From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs. This way you can develop your own security system, and restrict access to specific files/programs. You can write tools that can connect to your service.

Re: Running Python scripts under a different user

2006-05-29 Thread Bernard Lebel
Thanks Laszlo, I'll check it out. Bernard On 5/29/06, Laszlo Nagy [EMAIL PROTECTED] wrote: From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs. This way you can develop your own security system, and

Re: Running Python scripts under a different user

2006-05-29 Thread Laurent Pointal
Bernard Lebel a écrit : On 5/26/06, Laszlo Nagy [EMAIL PROTECTED] wrote: For Windows, you can use the 'runas.exe' program. But it requires a password too. From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs.

Running Python scripts under a different user

2006-05-26 Thread Bernard Lebel
Hello, I would like to know if there is a way to run a Python file under a different user account than the one logged in. Allow me to explain. There are a bunch of people here, they are basic user, with limited permissions. Basically there are locations on the network where they can only read

Re: Running Python scripts under a different user

2006-05-26 Thread Diez B. Roggisch
Bernard Lebel schrieb: Hello, I would like to know if there is a way to run a Python file under a different user account than the one logged in. Allow me to explain. There are a bunch of people here, they are basic user, with limited permissions. Basically there are locations on the

Re: Running Python scripts under a different user

2006-05-26 Thread Laszlo Nagy
Hello Diez, Please see below. And as you refrain form telling us which OS you are running under one can only be very vague on what to suggest - UNIXish OSes have for example the setguid-bit, sudo springs to mind and under certain desktops there are ways to acquire root-settings (but you

Re: Running Python scripts under a different user

2006-05-26 Thread Bernard Lebel
On 5/26/06, Diez B. Roggisch [EMAIL PROTECTED] wrote: And as you refrain form telling us which OS you are running under [Bernard] The network file server is Red Hat Enterprise 4. The user workstation run through MS Windows XP Pro 32bit SP2, accessing the file server through Samba. one can

Re: Running Python scripts under a different user

2006-05-26 Thread Bernard Lebel
On 5/26/06, Laszlo Nagy [EMAIL PROTECTED] wrote: For Windows, you can use the 'runas.exe' program. But it requires a password too. From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs. This way you can develop