PTY accessible by group membership inaccessible by symlink?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm setting up a Linux application which interfaces with programs designed to talk to a serial port. What's strange is that while I can access the pty by symlink if I am the owner user (klipper
), I can't if I'm not, even if the other user (octoprint
) is in the pty's owning group.
For context, the symlink is at /tmp/printer
and the pty is at /dev/pts/1
.
$ ls -l /tmp/printer
lrwxrwxrwx 1 klipper klipper 10 Oct 19 21:30 /tmp/printer -> /dev/pts/1
$ ls -l /dev/pts/1
crw-rw---- 1 klipper tty 136, 1 Oct 19 22:41 /dev/pts/1
$ groups klipper
network tty uucp klipper
$ sudo -u octoprint picocom /tmp/printer
<...>
FATAL: cannot open /tmp/printer: Permission denied
$ sudo -u octoprint picocom /dev/pts/1
<...>
Terminal ready
permissions symlink
add a comment |Â
up vote
0
down vote
favorite
I'm setting up a Linux application which interfaces with programs designed to talk to a serial port. What's strange is that while I can access the pty by symlink if I am the owner user (klipper
), I can't if I'm not, even if the other user (octoprint
) is in the pty's owning group.
For context, the symlink is at /tmp/printer
and the pty is at /dev/pts/1
.
$ ls -l /tmp/printer
lrwxrwxrwx 1 klipper klipper 10 Oct 19 21:30 /tmp/printer -> /dev/pts/1
$ ls -l /dev/pts/1
crw-rw---- 1 klipper tty 136, 1 Oct 19 22:41 /dev/pts/1
$ groups klipper
network tty uucp klipper
$ sudo -u octoprint picocom /tmp/printer
<...>
FATAL: cannot open /tmp/printer: Permission denied
$ sudo -u octoprint picocom /dev/pts/1
<...>
Terminal ready
permissions symlink
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm setting up a Linux application which interfaces with programs designed to talk to a serial port. What's strange is that while I can access the pty by symlink if I am the owner user (klipper
), I can't if I'm not, even if the other user (octoprint
) is in the pty's owning group.
For context, the symlink is at /tmp/printer
and the pty is at /dev/pts/1
.
$ ls -l /tmp/printer
lrwxrwxrwx 1 klipper klipper 10 Oct 19 21:30 /tmp/printer -> /dev/pts/1
$ ls -l /dev/pts/1
crw-rw---- 1 klipper tty 136, 1 Oct 19 22:41 /dev/pts/1
$ groups klipper
network tty uucp klipper
$ sudo -u octoprint picocom /tmp/printer
<...>
FATAL: cannot open /tmp/printer: Permission denied
$ sudo -u octoprint picocom /dev/pts/1
<...>
Terminal ready
permissions symlink
I'm setting up a Linux application which interfaces with programs designed to talk to a serial port. What's strange is that while I can access the pty by symlink if I am the owner user (klipper
), I can't if I'm not, even if the other user (octoprint
) is in the pty's owning group.
For context, the symlink is at /tmp/printer
and the pty is at /dev/pts/1
.
$ ls -l /tmp/printer
lrwxrwxrwx 1 klipper klipper 10 Oct 19 21:30 /tmp/printer -> /dev/pts/1
$ ls -l /dev/pts/1
crw-rw---- 1 klipper tty 136, 1 Oct 19 22:41 /dev/pts/1
$ groups klipper
network tty uucp klipper
$ sudo -u octoprint picocom /tmp/printer
<...>
FATAL: cannot open /tmp/printer: Permission denied
$ sudo -u octoprint picocom /dev/pts/1
<...>
Terminal ready
permissions symlink
permissions symlink
asked 2 mins ago
Yet Another User
1285
1285
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476675%2fpty-accessible-by-group-membership-inaccessible-by-symlink%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password