SMStools error with send sms

Hello
I have this message "Error: EACCES: permission denied, open '/var/spool/sms/outgoing/node-.....'" when i test send sms (node smstools on raspberry)
How can I allow all nodes to this file?

Hi @bpi2008, welcome to the forum.

The readme for node-red-contrib-smstools does say

Make sure your node-red instance has read permissions in all of /var/spool/sms/ directories and write permissions in /var/spool/sms/outgoing directory.

What does ls -ld /var/spool/sms/outgoing show you?

Depending on the above, you may be able to fix it by adding the Node-red user (normally your default login on the Raspberry Pi) to a user group, or else sudo chmod +w /var/spool/sms/outgoing

I see that node was last updated 8 years ago and it does not have a link from flows.nodered.org to a github page. There have been a lot of changes in Node-red since then and it might not work any more.

Thanks Jbudd

ls -ld /var/spool/sms/outgoing:

=> drwxrwsr-t 2 smsd smsd 4096 6 déc. 13:11

I'm not a Linux specialist, that probably explains it

I'm not certain this will work but try sudo usermod -a -G smsd username where username is the username that Node-red runs as.

You probably have to reboot before it takes effect.

1 Like

username is the user login to node red ?

Sorry Jbbudd now it's ok with the sudo usermod ...... many thanks for all have a nice day, Bernard from France

I'm glad you got it working.

Sending SMS notifications is a common wish for Node-red.
Can you tell us what hardware you have -

  • What are you running Node-red on?
  • What device has the mobile phone SIM card?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.