Skip to content
Snippets Groups Projects
Commit 49c8a03a authored by Nikolai Hartmann's avatar Nikolai Hartmann
Browse files

force xrootd user to uid 1000 in image

parent 54129e75
No related branches found
No related tags found
No related merge requests found
[Distribution]
Distribution=alma
Release=8
Repositories=BaseOS
Repositories=baseos
UseHostRepositories=True
[Content]
......
......@@ -18,3 +18,14 @@ yum install -y \
python3-requests
yum --disablerepo="*" --enablerepo="osg-upcoming-testing" install -y xrootd-rucioN2N-for-Xcache
echo "Force xrootd user id to 1000"
old_uid=$(id -u xrootd)
old_gid=$(id -g xrootd)
usermod -u 1000 xrootd
groupmod -g 1000 xrootd
echo "Upgrade permissions ..."
# exclude /proc since this would try to modify the fd of the find process
find / -path /proc -prune -o -uid ${old_uid} -exec chown -h xrootd {} \;
find / -path /proc -prune -o -gid ${old_gid} -exec chgrp -h xrootd {} \;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment