Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Newest
 Teacher
Impact
~9k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Feb
19
comment BASH Scripting, su to www-data for single command
Use su - www-data -s /bin/bash -c 'your_command' to make this work. User www-data has shell /usr/sbin/nologin so without the -s parameter it leads to the error message.
Nov
3
awarded  Teacher
Nov
3
answered Setting up Amazon Cloudwatch to get an alert when you server is down
Apr
20
awarded  Supporter