From 80c5812861fa4251e0b84de4d992d9e75af779e7 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Tue, 7 Apr 2015 00:08:23 -0700 Subject: [PATCH] Linux: run socat as user not as root If sudo is used to run socat the tty cannot be opened by a regular user Signed-off-by: Mark Charlebois --- Tools/linux_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/linux_run.sh b/Tools/linux_run.sh index 8005b65539..5207aebdfb 100755 --- a/Tools/linux_run.sh +++ b/Tools/linux_run.sh @@ -3,7 +3,7 @@ if [ ! -c /tmp/ttyS0 ] || [ ! -c /tmp/ttyS1 ] then echo "Need to create /tmp/ttyS[01]" - echo "sudo socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1" + echo "socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1" exit 1 fi