Post Go back to editing

Regular user access to local:

Thread Summary

The user is experiencing permission issues when trying to access the ADALM-PLUTO SDR device using the 'local:' URI context on a Debian-based OS (Kuiper) running on a Zynq ARM platform. The 'local:' URI requires root access due to direct access to /sys/bus, while the 'ip:' URI works without root. The final answer suggests that the issue is due to the direct access to /sys/bus, and recommends using the IIOD backend which runs as root for non-root user access.
AI Generated Content
Category: Software
Product Number: plutosdr

Using a debian based OS - Kuiper - on plutosdr arm (Zynq)

It seems that uri context local: is only allowed to root.

Logged as a regular user (analog)

iio_readdev -u local: -b 256 -s 256 cf-ad9361-lpc
Unable to allocate buffer: Permission denied (13)

sudo iio_readdev -u local: -b 256 -s 256 cf-ad9361-lpc is working

But using uri:ip:127.0.0.1

iio_readdev -u local: -b 256 -s 256 cf-ad9361-lpc is working

As I need fast transfer , is there any way to allow regular user (analog) to access to local: ? udev rule ?

After further investigation, local: use mmap which is allowed only to root.

It means that softwares could not use high speed transfers without priviledge. It is a bit weird ! Maybe a solution is to transfer this particular mode to kernel ? 

Any hints appreciated.

Regards

Evariste F5OEO

Edit Notes

Further investigation
[edited by: F5OEO at 10:21 AM (GMT -4) on 15 Oct 2025]