0

I have recently transitioned from CentOS 7.9 to AlmaLinux 8.9, and I have noticed a permission error when executing the following command:

$ setserial /dev/ttyAP0 closing_wait none

I get the following output:

Cannot set serial info: Operation not permitted

My user account is part of the dialout group which I believe needs to be done when wanting to communicate to serial devices, but apart from this I am not sure what else could cause this error message.

When executing the following command, I can confirm I am part of the dialout group:

$ groups tester

enter image description here

If I list out my serial ports on my machine, I can see they are part of the dialout group.

$ ls -l /dev/ttyAP*

enter image description here

I don't run the command via sudo on either Linux Distro, so is there anyway I can identify the cause of the message in AlmaLinux.

5
  • Did you logout/login after you added yourself to the dialout group? Check with id. Did you verify that dialout is the right group and device with ls -l /devttyAP0
    – waltinator
    Commented Oct 10, 2024 at 19:09
  • Hello @waltinator I have restarted my machine and checked for the correct permissions of my listed serial ports.
    – hymcode
    Commented Oct 11, 2024 at 8:26
  • Please edit your Question and show the results of the commands I suggested.
    – waltinator
    Commented Oct 11, 2024 at 13:55
  • Hello @waltinator, I have updated my question with the commands you've suggested. Are you not able to see them ?
    – hymcode
    Commented Oct 11, 2024 at 14:12
  • As a test, what happens if you change your account's primary group to dialout and invoke the command?
    – Sotto Voce
    Commented Oct 12, 2024 at 18:17

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.