Doubt on process running as a root: reg

17 views
Skip to first unread message

Logunath K

unread,
Sep 9, 2024, 6:01:58 AM9/9/24
to open...@googlegroups.com
Dear team,
                  All our processes are running smoothly on the ubuntu server but when I read the documents it's showing "All processes are running as the www-data user".                
but when I saw in /opt/openwisp2/env/lib/python3.20site-packages/* all processes were running as "root" not as www-data. 

Only in /opt/openwisp2/openwisp2 path files are in the user  "root" group as "www-data".  Does it cause any effect on the server or application?

I have installed the application via ansible package.

Regards,
Logu

Federico Capoano

unread,
Sep 9, 2024, 9:43:28 PM9/9/24
to open...@googlegroups.com
I think you may be confusing python package files with processes.
What's the command you use to see running processes?

Not all files in the openwisp directory are owned by www-data. In the unfortunate case in which a vulnerability in the OpenWISP python application is found and exploited to write on disk, the attacker wouldn't be able to change much because most important files are not writable by www-data. That's why many files are owned by root and writable only by the owner.

Best regards
Federico Capoano

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAJy2ivpaAJ-esFkeO%2Bp6Xq8Fm%3DC8OXRFMKgWGVOfV%2BiTkLHx6w%40mail.gmail.com.

Logunath K

unread,
Sep 16, 2024, 8:16:52 AM9/16/24
to open...@googlegroups.com
I used to use: ps aux and ls -alrt

But the python and openwisp2 packages which are present in this path: /opt/openwisp2/env/lib/python3.20site-packages/* are all displaying like root:root when I do the ls -alrt.
Does it cause/affect anything on openwisp2?

Regards,
Logu


Federico Capoano

unread,
Sep 16, 2024, 1:00:25 PM9/16/24
to open...@googlegroups.com
That should not be an issue.

F.

Reply all
Reply to author
Forward
0 new messages