Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Running a script on job start as root
- Date: Fri, 15 Mar 2024 11:12:52 +0100 (CET)
- From: "Beyer, Christoph" <christoph.beyer@xxxxxxx>
- Subject: Re: [HTCondor-users] Running a script on job start as root
Hi,
I thought Condor does change to the job-owners identity whenever it is possible but usually keeps the abiltity to switch to root when needed ?
Not sure if that is also the case with the jobwrapper but a lot of processes switch from job-owner to root and back in the process ...
Did you make sure it is not the case in the job-wrapper ?
Best
christoph
--
Christoph Beyer
DESY Hamburg
IT-Department
Notkestr. 85
Building 02b, Room 009
22607 Hamburg
phone:+49-(0)40-8998-2317
mail: christoph.beyer@xxxxxxx
----- UrsprÃngliche Mail -----
Von: "Max Fischer, SCC" <max.fischer@xxxxxxx>
An: "HTCondor-Users Mail List" <htcondor-users@xxxxxxxxxxx>
Gesendet: Freitag, 15. MÃrz 2024 10:55:56
Betreff: Re: [HTCondor-users] Running a script on job start as root
Hi Philippe,
Good thinking, but it looks like all these hooks also run as the user of the job. :/
Cheers,
Max
> On 14. Mar 2024, at 16:46, Philippe Grassia <pgrassia@xxxxxxxxxxx> wrote:
>
> seems like a job for https://htcondor.readthedocs.io/en/lts/admin-manual/hooks.html#job-hooks-that-modify-and-monitor-execution
>
>
> On 3/14/24 7:54 AM, Fischer, Max (SCC) wrote:
>> Hi all,
>>
>> We want to make some adjustments on each job start that require root (for a start, fiddle with cgroups cfs_quota_us). However, the USER_JOB_WRAPPER already runs as the user. We donât want to let the user run the adjustment program, so USER_JOB_WRAPPER with sudo/setuid and friends is out of the question, too.
>>
>> Is there any way to trigger a script as condor/root right when a job starts?
>>
>> Cheers,
>> Max
>>
>>
>> _______________________________________________
>> HTCondor-users mailing list
>> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
>> subject: Unsubscribe
>> You can also unsubscribe by visiting
>> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>>
>> The archives can be found at:
>> https://lists.cs.wisc.edu/archive/htcondor-users/
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/