Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor omission in Startup Script for Linux (readme.md) #58

Open
Googliola opened this issue Jan 19, 2017 · 2 comments
Open

Minor omission in Startup Script for Linux (readme.md) #58

Googliola opened this issue Jan 19, 2017 · 2 comments

Comments

@Googliola
Copy link

In order to add it to init.d and get it up and running, one command is missing:

$ cd /etc/init.d
$ sudo chmod 755 ./serial-port-json-server

Since I am just a noob with linux stuff (read: mostly copy & paste ;-) ), I am not 100% sure if 755 is the best choice or other things might be missing. Without it, I get a not executable error msg.
Source: https://nelsontrujillo.com/2015/06/03/controlling-the-cnc-with-raspberry-pi/

@Googliola Googliola changed the title Minor omition in Startup Script for Linux (readme.md) Minor omission in Startup Script for Linux (readme.md) Jan 19, 2017
@DanielJoyce
Copy link

Serial Port Json Server runs as root in that config. It also allows remote hosts to request arbitrary scripts to be run. These two together mean anyone who gets on your network can trivially root your box. I would edit your crontab file to restrict what user

Added exec and execruntime commands. The exec command lets you simply execute any command on the host operating system as if you were logged in at the command line. This is similar to the program command which essentially was executing a command on the command line. However, now you can do any command you want. Make sure your host OS is behind a firewall as this method opens up your device to any command being executed on it. Changes in 1.86

Still doesn't look like this has been behind a commandline switch

@johnlauer
Copy link
Owner

johnlauer commented Feb 23, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants