-
Notifications
You must be signed in to change notification settings - Fork 27
Running 389 directory server as a dirsrv(non-root) user #3054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Created a staging project on OBS for 7: home:pushman:BCI:Staging:SLE-15-SP7:7-3054 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=15.7 TARGET=custom BASEURL=registry.opensuse.org/home/pushman/bci/staging/sle-15-sp7/7-3054/ tox -- -n autoThe following images can be pulled from the staging project:
|
|
Created a staging project on OBS for Tumbleweed: home:pushman:BCI:Staging:Tumbleweed:Tumbleweed-3054 Build ResultsRepository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/pushman/bci/staging/tumbleweed/tumbleweed-3054/ tox -- -n autoThe following images can be pulled from the staging project:
|
|
Created a staging project on OBS for 16.0: home:pushman:BCI:Staging:16.0:16.0-3054 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=16.0 TARGET=custom BASEURL=registry.opensuse.org/home/pushman/bci/staging/16.0/16.0-3054/ tox -- -n autoThe following images can be pulled from the staging project:
|
| ln -s /data/run /var/run/dirsrv | ||
| ln -s /data/run /var/run/dirsrv; \ | ||
| chown -R dirsrv: /data;\ | ||
| chown -R dirsrv: /run/dirsrv; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: can we just set the permissions from start by changing line 135 to install -d -m 0755 -o .. -g .. /path/to/dir
| ln -s /data/ssca /etc/dirsrv/ssca; \ | ||
| ln -s /data/run /var/run/dirsrv | ||
| ln -s /data/run /var/run/dirsrv; \ | ||
| chown -R dirsrv: /data;\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the mkdir -p /data/config to install -d -o dirsrv -g dirsrv /data, install -d -o dirsrv -g dirsv /data/config
overall this only works for podman and cannot work for docker as the directory permissions are not preserved for volumes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can merge all mkdir commands into one install and group the chown commands.
install -d -o dirsrv -g dirsrv /data /data/config /data/ssca /data/run /var/run/dirsrv; \
ln -s /data/config /etc/dirsrv/slapd-localhost; \
ln -s /data/ssca /etc/dirsrv/ssca; \
ln -s /data/run /var/run/dirsrv; \
chown -R dirsrv:dirsrv /data /var/run/dirsrv; \
chgrp -R dirsrv /etc/dirsrv;
7263652 to
50b5a37
Compare
No description provided.