Skip to content

Support running in custom Linux group #18

@LwServices

Description

@LwServices

When is start my app and access to GPIO
App throws System.UnauthorizedAccessException: 'Setting a mode to a pin requires root permissions.'

change group to gpio solved my issue

pi@busterhat:~/vsdbg/RemoteIo $ ls -al | grep RemoteIo
-rwxrwx---  1 pi pi   77512 Dec 21 13:10 RemoteIo

pi@busterhat:~/vsdbg/RemoteIo $ chgrp gpio RemoteIo
pi@busterhat:~/vsdbg/RemoteIo $ ls -al | grep RemoteIo
-rwxrwx---  1 pi gpio   77512 Dec 21 13:10 RemoteIo

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions