Changing the /dev/tty* permissions at startup

421

It turns out that this problem was specific to RaspberryPi, since the /dev/ttyAMA0 serial port that's linked to the hardware GPIO pins by default is initialized for virtual console access.

I had to remove any reference to /dev/ttyAMA0 in /boot/cmdline.txt, reboot, and the /dev/ttyAMA0 now was with proper group permissions (read+write), however the group name now was uucp. What is not problem, of course, to put my user in that group.

Had I wanted to change the ownership of /dev/ttyAMA0 or permissions, that could be done via editing the rule files in the /usr/lib/udev/rules.d directory.

Share:
421

Related videos on Youtube

user2975740
Author by

user2975740

Updated on September 18, 2022

Comments

  • user2975740
    user2975740 almost 2 years

    I tried to run action bar in android 2, so I used ActionBarSherlock, as you know when you are using ActionBarSherlock you should use some spesific themes, all of this themes have titlebar, how can I hide titlebar and use app in fullscrean mode? I tried this.requestWindowFeature(Window.FEATURE_NO_TITLE); but there is no achivment.

    • Raghunandan
      Raghunandan over 10 years
    • Gilles 'SO- stop being evil'
      Gilles 'SO- stop being evil' about 9 years
      That sounds like a job for udev. But 0620 root:tty does give the user read access to the port, so your problem isn't the permissions, unless you meant that the user needs write access (which is plausible, most serial protocols require bidirectional communication).
    • Passiday
      Passiday about 9 years
      I don't know the reasons why the default permissions to the /dev/tty* files in archlinux is rw--w----, what, to my understanding, equals 0620, and means read+write to root and write to tty group. My project indeed needs only write access but the python script fails to initialize if there is no read access, too.
    • Gilles 'SO- stop being evil'
      Gilles 'SO- stop being evil' about 9 years
      Oh, sorry, you have write access and you want read access. My bad, I misread your question.
  • Tevlon
    Tevlon over 10 years
    You can add the 2 item names in the theme you're currently using.