Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Issue with permissions to /dev/ttyUSB0, yes I'm in the group

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
clytle374
Apprentice
Apprentice
Posts: 227
Joined: Tue Aug 01, 2006 3:07 am

Issue with permissions to /dev/ttyUSB0, yes I'm in the group

  • Quote

Post by clytle374 » Fri May 09, 2025 9:43 pm

Problem only exists when not logged in as root. I'm trying to run a program called uTmax that interfaces with a curve tracer board for vacuum tubes called a utracer.
I've had such problems before with not being in the correct group. Or a driver issue which being root doesn't fix. Any suggestions?

Code: Select all

ls -la /dev/ttyU*
crw-rw----+ 1 root plugdev 188, 0 May  9 17:07 /dev/ttyUSB0

Code: Select all

cory@workbench ~ $ groups
wheel audio video docker usb portage plugdev vboxusers cory
I'm using a USB to RS232 converter I've used a lot on other devices, it's not a cheap clone.

Code: Select all

Bus 002 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
The program does rely on the package dev-qt/qtserialport-6.8.3 if that matters. Lots of references to rfcomm which I can't find data on.

Here is the output of the program

Code: Select all

Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_TLsort_changed()
SerialPortDiscovery: comport= "rfcomm0" available= "ttyUSB0"
SerialPortDiscovery: comport= "rfcomm0" available= "ttyS0"
SerialPortDiscovery: comport= "rfcomm0" available= "ttyS1"
SerialPortDiscovery: comport= "rfcomm0" available= "ttyS2"
SerialPortDiscovery: comport= "rfcomm0" available= "ttyS3"
setting serPortInfo, comport: "ttyUSB0" "rfcomm0"
setting serPortInfo, comport: "ttyS0" "rfcomm0"
setting serPortInfo, comport: "ttyS1" "rfcomm0"
setting serPortInfo, comport: "ttyS2" "rfcomm0"
setting serPortInfo, comport: "ttyS3" "rfcomm0"
When ran as root, I get the same thing that ends with connected.

Code: Select all

Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_TLsort_changed()
QIODevice::write (QFile, "/root/uTmax_files/cal.txt"): device not open
SerialPortDiscovery: comport= "" available= "ttyUSB0"
SerialPortDiscovery: comport= "" available= "ttyS0"
SerialPortDiscovery: comport= "" available= "ttyS1"
SerialPortDiscovery: comport= "" available= "ttyS2"
SerialPortDiscovery: comport= "" available= "ttyS3"
setting serPortInfo, comport: "ttyUSB0" ""
setting serPortInfo, comport: "ttyS0" ""
setting serPortInfo, comport: "ttyS1" ""
setting serPortInfo, comport: "ttyS2" ""
setting serPortInfo, comport: "ttyS3" ""
Open "ttyUSB0"
NooB since RedHat 6.1
Top
bstaletic
Guru
Guru
Posts: 517
Joined: Sat Apr 05, 2014 5:46 pm

  • Quote

Post by bstaletic » Sat May 10, 2025 11:12 am

Were you in the plugdev group before you logged into your computer?
If not, you'll have to log out everywhere and log in again, or restart.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2112
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: Issue with permissions to /dev/ttyUSB0

  • Quote

Post by GDH-gentoo » Sat May 10, 2025 11:35 am

clytle374 wrote:

Code: Select all

ls -la /dev/ttyU*
crw-rw----+ 1 root plugdev 188, 0 May  9 17:07 /dev/ttyUSB0
Note that there is a "+" in the output. There's probably an access control list (ACL), so ls is not telling the full story. Post the output of getfacl /dev/ttyUSB0.
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
clytle374
Apprentice
Apprentice
Posts: 227
Joined: Tue Aug 01, 2006 3:07 am

Re: Issue with permissions to /dev/ttyUSB0

  • Quote

Post by clytle374 » Sat May 10, 2025 1:46 pm

bstaletic wrote:Were you in the plugdev group before you logged into your computer?
If not, you'll have to log out everywhere and log in again, or restart.
Yes, I even rebooted to be sure.
GDH-gentoo wrote:
clytle374 wrote:

Code: Select all

ls -la /dev/ttyU*
crw-rw----+ 1 root plugdev 188, 0 May  9 17:07 /dev/ttyUSB0
Note that there is a "+" in the output. There's probably an access control list (ACL), so ls is not telling the full story. Post the output of getfacl /dev/ttyUSB0.
Interesting, that's new territory to me. Here's the output

Code: Select all

 getfacl /dev/ttyUSB0
getfacl: Removing leading '/' from absolute path names
# file: dev/ttyUSB0
# owner: root
# group: plugdev
user::rw-
user:cory:rw-
group::rw-
mask::rw-
other::---
NooB since RedHat 6.1
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat May 10, 2025 2:21 pm

What does strace report to be failing? If we knew specifically which system call fails for your user, we might better understand what to fix.
Top
clytle374
Apprentice
Apprentice
Posts: 227
Joined: Tue Aug 01, 2006 3:07 am

  • Quote

Post by clytle374 » Sat May 10, 2025 2:53 pm

Hu wrote:What does strace report to be failing? If we knew specifically which system call fails for your user, we might better understand what to fix.
I'm not knowledgeable in the use of strace. It completely overruns the 10000 lines in the buffer in seconds. After a quick search I tried the following options without effect.

Code: Select all

strace ./do_not_run_uTmax -e trace=/dev/ttyUSB0

Code: Select all

strace ./do_not_run_uTmax -P /dev/ttyUSB0
Obviously I don't know what I'm doing there.
NooB since RedHat 6.1
Top
bstaletic
Guru
Guru
Posts: 517
Joined: Sat Apr 05, 2014 5:46 pm

  • Quote

Post by bstaletic » Sat May 10, 2025 3:03 pm

Try

Code: Select all

strace -o output.log ./do_not_run_uTmax -e trace=/dev/ttyUSB0
and then upload the output.log somewhere for us.
Top
clytle374
Apprentice
Apprentice
Posts: 227
Joined: Tue Aug 01, 2006 3:07 am

  • Quote

Post by clytle374 » Sat May 10, 2025 3:37 pm

bstaletic wrote:Try

Code: Select all

strace -o output.log ./do_not_run_uTmax -e trace=/dev/ttyUSB0
and then upload the output.log somewhere for us.
https://drive.google.com/file/d/1ZzCn73 ... sp=sharing

I might really have a problem here. I didn't realize that using the do_not_run was skipping setting a path to local libs. It will not run using them at all. I found the source code to the program and will try that later if all else fails
NooB since RedHat 6.1
Top
Post Reply

8 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic