Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED] QextSerialPort problem

    3rd Party Software
    3
    5
    2826
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xeroblast last edited by

      im running openSuse 11.4 and i have created a program that uses a serial port using QextSerialPort.

      i run my program in a normal user but the port will not open but if i run as root then the serial port is open.

      how do i solve this? any workaround to be a root user when using the serial port?

      thanks.

      1 Reply Last reply Reply Quote 0
      • X
        xeroblast last edited by

        my current solutions is making the user a member of the group that is handling the /dev/ttyS0.

        is there any way that the current user doesnt need to be a member of a group?

        1 Reply Last reply Reply Quote 0
        • T
          tobias.hunger last edited by

          Nope. You need the permissions to access the port, otherwise that won't work.

          1 Reply Last reply Reply Quote 0
          • X
            xeroblast last edited by

            thanx.. so thats the only way...

            1 Reply Last reply Reply Quote 0
            • Z
              ZapB last edited by

              Yes. Typically add the user you run your application as to the uucp group or maybe enable filesystem ACLs and set a suitable ACL on your serial device.

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply Reply Quote 0
              • First post
                Last post