# SMStools error with send sms

**URL:** <https://discourse.nodered.org/t/smstools-error-with-send-sms/83465>\
**Category:** Dashboard\
**Created:** [6 December 2023 13:29 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465 "2023-12-06T13:29:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)\
**Post date:** [6 December 2023 13:29 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/1 "2023-12-06T13:29:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [6 December 2023 13:39 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/2 "2023-12-06T13:39:59Z")

</div>

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](http://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.

---

<div class="post-metadata">

**Author:** ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)\
**Post date:** [6 December 2023 13:59 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/3 "2023-12-06T13:59:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [6 December 2023 14:13 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/4 "2023-12-06T14:13:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)\
**Post date:** [6 December 2023 14:32 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/5 "2023-12-06T14:32:17Z")

</div>

username is the user login to node red ?

---

<div class="post-metadata">

**Author:** ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)\
**Post date:** [6 December 2023 14:40 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/6 "2023-12-06T14:40:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [6 December 2023 15:34 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/7 "2023-12-06T15:34:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 December 2023 15:35 UTC](https://discourse.nodered.org/t/smstools-error-with-send-sms/83465/8 "2023-12-20T15:35:44Z")

</div>

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