# Root (admin) vs Regular user and packet socket

**URL:** <https://aravis-project.discourse.group/t/root-admin-vs-regular-user-and-packet-socket/764>\
**Category:** Using Aravis\
**Created:** [June 4, 2024, 8:45pm UTC](https://aravis-project.discourse.group/t/root-admin-vs-regular-user-and-packet-socket/764 "2024-06-04T20:45:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshec](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/joshec/32/298_2.png) [@joshec](https://aravis-project.discourse.group/u/joshec)\
**Post date:** [June 4, 2024, 8:45pm UTC](https://aravis-project.discourse.group/t/root-admin-vs-regular-user-and-packet-socket/764/1 "2024-06-04T20:45:58Z")

</div>

Hi all,

I am running aravis using the Arch AUR ([AUR (en) - aravis](https://aur.archlinux.org/packages/aravis)), which is 0.8.31. I am finding that if I run as root, packet socket is enabled, including a call to set\_socket\_filter, and I can receive camera data.

```auto
[15:41:32.062] 🅸 device> [GvDevice::auto_packet_size] Current packet size check successfull (1400 bytes)
[15:41:32.067] 🅸 stream> [GvStream::stream_new] Stream channel = 0
[15:41:32.069] 🅸 stream> [GvStream::stream_new] Packet size = 1400 byte(s)
[15:41:32.073] 🅸 stream> [GvStream::stream_new] Destination stream port = 39261
[15:41:32.073] 🅸 stream> [GvStream::stream_new] Source stream port = 49153
[15:41:32.114] 🅸 stream> [GvStream::loop] Packet socket method
[15:41:32.224] 🅸 stream-thread> [GvStream::set_socket_filter] source ip = 0xc0a80651 - port = 49153 - dest ip = 0xc0a80650 - port 39261
[15:41:32.900] 🅳 device> [GvDevice::Heartbeat] Ack value = 2
[15:41:33.901] 🅳 device> [GvDevice::Heartbeat] Ack value = 2

```

As a user with no special privileges, I’m seeing the standard socket method, but never actual receiving data.

```auto
[15:41:07.472] 🅸 device> [GvDevice::auto_packet_size] Current packet size check successfull (1400 bytes)
[15:41:07.476] 🅸 stream> [GvStream::stream_new] Stream channel = 0
[15:41:07.479] 🅸 stream> [GvStream::stream_new] Packet size = 1400 byte(s)
[15:41:07.483] 🅸 stream> [GvStream::stream_new] Destination stream port = 56308
[15:41:07.483] 🅸 stream> [GvStream::stream_new] Source stream port = 49153
[15:41:07.483] 🅸 stream> [GvStream::loop] Standard socket method
[15:41:08.301] 🅳 device> [GvDevice::Heartbeat] Ack value = 2

```

This is on top of neither method finding the increased MTU size for the interface (9014). I’d love some idea on how to explain this, or if I just need a user that has security rights to install filters.

Thanks!

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/emmanuel/32/198_2.png) [@Emmanuel](https://aravis-project.discourse.group/u/Emmanuel)\
**Post date:** [July 19, 2024, 8:25am UTC](https://aravis-project.discourse.group/t/root-admin-vs-regular-user-and-packet-socket/764/2 "2024-07-19T08:25:36Z")

</div>

Hi,

Could you attach the streaming statistics obtained by setting `ARV_DEBUG=all` when running your test ?

Emmanuel.

---

<div class="post-metadata">

**Author:** ![joshec](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/joshec/32/298_2.png) [@joshec](https://aravis-project.discourse.group/u/joshec)\
**Post date:** [July 19, 2024, 4:16pm UTC](https://aravis-project.discourse.group/t/root-admin-vs-regular-user-and-packet-socket/764/3 "2024-07-19T16:16:42Z")

</div>

I’m now getting camera data with both methods, so I am assuming I had something else wrong there. But neither is picking up MTU changes, either way. The statistics look good on everything right now.

I am not sure if I should just call this issue cleaned up for now, or instead say that I should further debug the MTU issue.

Apologies for not coming back around to this and updating it as (generally) working

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/emmanuel/32/198_2.png) [@Emmanuel](https://aravis-project.discourse.group/u/Emmanuel)\
**Post date:** [August 27, 2024, 12:35pm UTC](https://aravis-project.discourse.group/t/root-admin-vs-regular-user-and-packet-socket/764/4 "2024-08-27T12:35:07Z")

</div>

Thanks for the follow up.

Cheers,

Emmanuel.
