Sorry for the ignorance but looking to keep secure... Two systems: 1 using iredapd 1.4.4. & new is 1.6.0.
It appears that both systems are running uwsgi as root user which is a bad idea as I understand it.
# ps aux | grep -i 'uwsgi'
root 23432 0.0 0.0 103244 896 pts/0 S+ 12:36 0:00 grep -i uwsgi
# ps uax | grep -i "uwsgi"
root 1949 0.0 0.0 108436 1820 ? S 06:59 0:00 /bin/sh /etc/rc3.d/S85uwsgi start
root 1955 0.0 0.0 108168 1376 ? S 06:59 0:00 /bin/bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/uwsgi --ini /etc/uwsgi.ini
root 1956 0.0 0.0 57024 3260 ? S 06:59 0:01 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
root 1957 0.0 0.0 56572 1252 ? S 06:59 0:01 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
2001 1958 0.0 0.0 163400 6244 ? S 06:59 0:01 /usr/sbin/uwsgi --ini iredadmin.ini
root 1959 0.0 0.0 57024 1008 ? S 06:59 0:00 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
root 1960 0.0 0.0 57024 1008 ? S 06:59 0:00 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
2001 1964 0.0 0.0 180528 4956 ? S 06:59 0:00 /usr/sbin/uwsgi --ini iredadmin.ini
root 2146 0.0 0.0 103244 880 pts/2 S+ 12:42 0:00 grep -i uwsgi
Isn't this a security concern/risk?
Plus, if I understand this: "after it loads required Python modules/files, it switches to run as iredapd user"
You're implying the daemon or script is going to change ownership back which is NOT occurring....
If my understanding is correct, should and/or can the scripts be modified to NOT Run uwsgi as root?
FYI: There is also a reference to uwsgi possibly being controlled by manage.py operating as root.