Re: screen-4.6.0 regression: within su: Cannot open your terminal '/dev/pts/14' - please check

Clark Wang <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CADv8-ohsb-rsFVhbiJxc8ngKTPhn5kA3-dS_2jXP2s4kKLb9NQ@mail.gmail.com>
On Thu, Jun 29, 2017 at 7:52 PM, Axel Beckert <[email protected]> wrote:

>
> I know that behaviour of screen for ages and even saw people
> recommending tmux because it doesn't seem to have this issue.
>
> > /dev/pts/14 is indeed not owned by user test, but this way screen
> > have worked fine for as long as I can remember, so this access
> > should not be mandatory.
> >
> > Any way to return the old behaviour?
>
> I'd rather be interested in how you got that working all these years.
> :-)
>

Just tried v4.5. /usr/bin/screen (rwxr-sr-x) does not work with su but
/usr/local/bin/screen (rwsr-xr-x) I built from source works fine:

# ls -Ll /usr/bin/screen /usr/local/bin/screen
-rwxr-sr-x 1 root utmp   457608 2017-05-23 07:57 /usr/bin/screen
-rwsr-xr-x 1 root staff 1441416 2017-01-19 13:59 /usr/local/bin/screen
# /usr/bin/screen --version
Screen version 4.05.00 (GNU) 10-Dec-16
# /usr/local/bin/screen --version
Screen version 4.05.00 (GNU) 10-Dec-16
# su - clarkw -c '/usr/bin/screen echo hello'
Cannot open your terminal '/dev/pts/3' - please check.
# su - clarkw -c '/usr/local/bin/screen echo hello'
hello
[screen is terminating]
#

Just compiled v4.6 (rwsr-xr-x) but it did not work either:

# ls -Ll /usr/local/screen-4.6.0/bin/screen
-rwsr-xr-x 1 root staff 1558704 2017-06-30 14:32
/usr/local/screen-4.6.0/bin/screen
# su - clarkw -c '/usr/local/screen-4.6.0/bin/screen echo hello'
Cannot open your terminal '/dev/pts/3' - please check.
#

-clark

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.