On 6/6/23 04:40, Robert Bower wrote:
The permissions on chirp is 755. The owner is root and the group is root. But since others is read and execute. The program runs and everything in the bin directory has the same permissions.
If I set /dev/ttyUSB0 to 0666 or 777 I still get the same error. I downloaded today's build and the same error.
Okay, first things first… you cannot "execute" a serial port. Don't bother setting the 'x' bits.
[…]
Here is the strange part. I can run flrig on the same computer using an usb cable connected to my G90 for cat control and everything works fine.
That to me says, your permissions problem is _not_ with the serial port. There is _some other_ file that `chirp` is trying to open, can't because of permissions, and _that_ is causing your "Permission Denied" error.
The fact your ran `sudo chirpw` to launch Chirp probably suggests it created files as the `root` user. I'd try running:
find ${HOME} -user 0
and reviewing that list of files, I suspect most of these should be owned by your own user account, then fixing ownership by running:
sudo chown $( id -u ):$( id -g ) ${files}
Or to recursively change permissions in whole directories (including home directory):
sudo chown -R $( id -u ):$( id -g ) ${directories}