Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:39:18+00:00 2026-06-08T06:39:18+00:00

I have an application that runs on an embedded system that automatically runs at

  • 0

I have an application that runs on an embedded system that automatically runs at startup. Because some of the functionality involves reading and writing to the serial port I require the software to have root privileges. On my desktop it is no problem as I can just run the program as sudo and it is fine. On my embedded device I am unable to do this so what I was hoping is that there is some linux system function that will allow the code to not be run as root, but can have root privilege to access the serial port than it is needed. I realise that this is probably not a good idea from a security perspective but since it is on an embedded device I have no alternative.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:39:21+00:00Added an answer on June 8, 2026 at 6:39 am

    Have you considered just changing the permissions of the serial port device node so that your application can access it?

    E.g. to allow every application to access the /dev/ttyS0 serial port:

    chmod a+rw /dev/ttyS0
    

    To provide more fine-grained control, you can create a separate user group and chgrp your serial port device node:

    chgrp serial /dev/ttyS0
    chmod 0660 /dev/ttyS0
    

    Afterwards, all you need is making sure that the user your application runs as is in the serial user group.

    Or you could even make the application user the sole owner of the device node:

    chown appuser /dev/ttyS0
    chmod 0600 /dev/ttyS0
    

    Requiring root privileges just to access a device node is not the right approach…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that runs on an embedded processor (ARM), and I'd like
I have an application that runs on embedded linux (older kernel, 2.6.18). I'm using
I have a Java application which runs on an embedded device. Because different devices
I am working on a project that involves an embedded system which runs a
I have an system running embedded linux and it is critical that it runs
I have an application that runs on background because it's needs to use Location
I have a application that runs very well on JBoss using JSF 2. I
I have an application that runs on a shared hosting website - it is
I have an application that runs through the rounds in a tournament, and I
I have an application that runs on a client's server built on a SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.