Hi,
I am trying to read a file under Ubuntu... The file is under my home directory, as shown in the screen capture...
I am using readfile, and all permissions are set to read/write for everyone on system, for the target file.
I know this is some sort of permissions issue, but I don't know what it is... Any suggestions?
-- 73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
|
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
Dave Perhaps the file is in a directory that requires administrative privileges?? I suggest two ideas. 1- Move the file to different locations, like the documents directory. 2- prepend a "sudo" to your Node-Red read file command, with a password. ?The command will look like this: ? " sudo -S <<< "password"?
Alan. WA9WUD
|
If the permissions are set correctly the only other reason I would think node red could not read the file is that node red is not apart of the group.? ??
-- Mick, W8BE
|
Hi Mick, Thank you for the assistance, here are the results:
-rw-rw-rw- 1 dcole dcole 3 Jun 11 05:20 /home/dcole/scripts/solar_data/incoming/lotwcount.txt
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/10/22 22:50, Mick - W8BE wrote: Dave can? you run the following command and print the output: ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt Size: 3 Blocks: 8 IO Block: 4096 regular file Device: 801h/2049d Inode: 60424491 Links: 1 Access: (0666/-rw-rw-rw-) Uid: ( 1000/ dcole) Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/10/22 23:19, Adrian Fewster wrote: stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt would be interesting to see also and the function ? Adrian On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
BTW, the file is created by a perl script I run under dcole, same group the file is owned by.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 04:54, Mick - W8BE wrote: If the permissions are set correctly the only other reason I would think node red could not read the file is that node red is not apart of the group. <> -- Mick, W8BE
|
Let me absorb this a bit... I am quite new to Node-Red, and have never even heard of the visudo before...
I have learned to understand what changes I make first though, so I am going slow and careful here...
I brought up visudo, and I don't see dcole anywhere...
If all of this is to insure dcole can use sudo, I can already, however I do need a password when I invoke sudo.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 05:48, Adrian Fewster wrote: Dave, Is dcole in visudo setup as ; $ sudo visudo # Allow members of group sudo to execute any command %sudoALL=(ALL:ALL) ALL dcoleALL=(ALL) NOPASSWD:ALL This allows password free sudo usage Also apply sudo chmod 777 /home/dcole/scripts/solar_data/incoming/lotwcount.txt Does it function now ? Check the node-red service user or root status ? 73 Adrian On 11/6/22 22:36, Dave (NK7Z) wrote:
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? Size: 3???????????? Blocks: 8????????? IO Block: 4096?? regular file Device: 801h/2049d??? Inode: 60424491??? Links: 1 Access: (0666/-rw-rw-rw-)? Uid: ( 1000/?? dcole)?? Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 ?Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt
would be interesting to see also and the function ?
Adrian
On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
I believe you are asking if there is any code in the section for code for the file node, (is that called a function as well as a node?), nothing is in that part.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 05:49, Adrian Fewster wrote: Dave, also what is in the function attached to that read node please? 73 Adrian On 11/6/22 22:36, Dave (NK7Z) wrote:
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? Size: 3???????????? Blocks: 8????????? IO Block: 4096?? regular file Device: 801h/2049d??? Inode: 60424491??? Links: 1 Access: (0666/-rw-rw-rw-)? Uid: ( 1000/?? dcole)?? Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 ?Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt
would be interesting to see also and the function ?
Adrian
On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
Adrian, That generates pages, and pages of output... Should there be a grep there someplace?
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 05:53, Adrian Fewster wrote: Also what is the link to the file ? |find -L / ||-samefile |/home/dcole/scripts/solar_data/incoming/lotwcount.txt On 11/6/22 22:36, Dave (NK7Z) wrote:
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? Size: 3???????????? Blocks: 8????????? IO Block: 4096?? regular file Device: 801h/2049d??? Inode: 60424491??? Links: 1 Access: (0666/-rw-rw-rw-)? Uid: ( 1000/?? dcole)?? Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 ?Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt
would be interesting to see also and the function ?
Adrian
On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
I assume so... As I mentioned I am new at Node-Red...
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:01, Adrian Fewster wrote: Ok. So that just does 'return msg;' ? 73 Adrian On 11/6/22 22:59, Dave (NK7Z) wrote:
I believe you are asking if there is any code in the section for code for the file node, (is that called a function as well as a node?), nothing is in that part.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/11/22 05:49, Adrian Fewster wrote:
Dave, also what is in the function attached to that read node please?
73
Adrian
On 11/6/22 22:36, Dave (NK7Z) wrote:
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? Size: 3???????????? Blocks: 8????????? IO Block: 4096 regular file Device: 801h/2049d??? Inode: 60424491??? Links: 1 Access: (0666/-rw-rw-rw-)? Uid: ( 1000/?? dcole)?? Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 ?Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt
would be interesting to see also and the function ?
Adrian
On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
Will do, and I thank you for the help sir!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:04, Adrian Fewster wrote: Also see ; It's very useful when running scripts, processes with sudo lines. On 11/6/22 22:57, Dave (NK7Z) wrote:
Let me absorb this a bit...? I am quite new to Node-Red, and have never even heard of the visudo before...
I have learned to understand what changes I make first though, so I am going slow and careful here...
I brought up visudo, and I don't see dcole anywhere...
If all of this is to insure dcole can use sudo, I can already, however I do need a password when I invoke sudo.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/11/22 05:48, Adrian Fewster wrote:
Dave, Is dcole in visudo setup as ;
$ sudo visudo
# Allow members of group sudo to execute any command %sudoALL=(ALL:ALL) ALL dcoleALL=(ALL) NOPASSWD:ALL
This allows password free sudo usage
Also
apply
sudo chmod 777 /home/dcole/scripts/solar_data/incoming/lotwcount.txt
Does it function now ?
Check the node-red service user or root status ?
73
Adrian
On 11/6/22 22:36, Dave (NK7Z) wrote:
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? Size: 3???????????? Blocks: 8????????? IO Block: 4096 regular file Device: 801h/2049d??? Inode: 60424491??? Links: 1 Access: (0666/-rw-rw-rw-)? Uid: ( 1000/?? dcole)?? Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 ?Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt
would be interesting to see also and the function ?
Adrian
On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
Just did a very fast scan of that info, let me get setup for sudo, with no password, then try again...
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:04, Adrian Fewster wrote: Also see ; It's very useful when running scripts, processes with sudo lines. On 11/6/22 22:57, Dave (NK7Z) wrote:
Let me absorb this a bit...? I am quite new to Node-Red, and have never even heard of the visudo before...
I have learned to understand what changes I make first though, so I am going slow and careful here...
I brought up visudo, and I don't see dcole anywhere...
If all of this is to insure dcole can use sudo, I can already, however I do need a password when I invoke sudo.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/11/22 05:48, Adrian Fewster wrote:
Dave, Is dcole in visudo setup as ;
$ sudo visudo
# Allow members of group sudo to execute any command %sudoALL=(ALL:ALL) ALL dcoleALL=(ALL) NOPASSWD:ALL
This allows password free sudo usage
Also
apply
sudo chmod 777 /home/dcole/scripts/solar_data/incoming/lotwcount.txt
Does it function now ?
Check the node-red service user or root status ?
73
Adrian
On 11/6/22 22:36, Dave (NK7Z) wrote:
Hi Adrian, Here are the results:
dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt ? Size: 3???????????? Blocks: 8????????? IO Block: 4096 regular file Device: 801h/2049d??? Inode: 60424491??? Links: 1 Access: (0666/-rw-rw-rw-)? Uid: ( 1000/?? dcole)?? Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 ?Birth: - dcole@nostromo:~$
Also, thank you!
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt
would be interesting to see also and the function ?
Adrian
On 11/6/22 15:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output:
ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt -- Mick, W8BE
|
Dave, Your file permissions are fine for read and write.?? -rw-rw-rw- 1 dcole dcole 3 Jun 11 05:20 /home/dcole/scripts/solar_data/incoming/lotwcount.txt. What group is node red being run from? You can check /etc/group. If it is not in the same group you can add dcole to the node red group
chown 'node-red-group':dcole //home/dcole/scripts/solar_data/incoming/lotwcount.txt
Can you even write to the file? From all the above posts, I am getting the impression you can't even write to it.
At this point Dave,? I would just work with Adrian on this.? Too many cooks in the kitchen.??
-- Mick, W8BE
|
Same result sir:
dcole@nostromo:~/scripts/solar_data/incoming$ find -L / -samefile lotwcount.txt find: ¡®/.cache¡¯: Permission denied find: ¡®/root¡¯: Permission denied find: File system loop detected; ¡®/snap/ffmpeg/821/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/ffmpeg/821/usr/bin¡¯. find: File system loop detected; ¡®/snap/ffmpeg/current/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/ffmpeg/current/usr/bin¡¯. find: File system loop detected; ¡®/snap/ffmpeg/1286/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/ffmpeg/1286/usr/bin¡¯. find: File system loop detected; ¡®/snap/odrive-unofficial/2/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/odrive-unofficial/2/usr/bin¡¯. find: ¡®/snap/core18/2344/etc/ssl/private¡¯: Permission denied
I stopped cut here, pages and pages of files found...
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:09, Adrian Fewster wrote: Try cd /home/dcole/scripts/solar_data/incoming find -L / -samefile lotwcount.txt ..extra symbols have appeared in below ? On 11/6/22 23:02, Dave (NK7Z) wrote:
|find -L / ||-samefile |/home/dcole/scripts/solar_data/incoming/lotwcount.txt
|
Hi, Thank you for the help, and I will work with Adrian... I appreciate your help in this...
I getting a bit lost in this as well...
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:18, Mick - W8BE wrote: [Edited Message Follows] Dave, Your file permissions are fine for read and write. -rw-rw-rw- 1 dcole dcole 3 Jun 11 05:20 /home/dcole/scripts/solar_data/incoming/lotwcount.txt. What group is node red being run from? You can check /etc/group. If it is not in the same group you can add dcole to the node red group chown 'node-red-group':dcole //home/dcole/scripts/solar_data/incoming/lotwcount.txt Can you even write to the file? From all the above posts, I am getting the impression you can't even write to it. At this point Dave,? I would just work with Adrian on this.? Too many cooks in the kitchen. -- Mick, W8BE
|
OK, you mean put on the changes you wanted, THEN do sudo find -L / -samefile lotwcount.txt?
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:27, Adrian Fewster wrote: Do visudo edit, then sudo find -L / -samefile lotwcount.txt On 11/6/22 23:18, Dave (NK7Z) wrote:
Same result sir:
dcole@nostromo:~/scripts/solar_data/incoming$ find -L / -samefile lotwcount.txt find: ¡®/.cache¡¯: Permission denied find: ¡®/root¡¯: Permission denied find: File system loop detected; ¡®/snap/ffmpeg/821/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/ffmpeg/821/usr/bin¡¯. find: File system loop detected; ¡®/snap/ffmpeg/current/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/ffmpeg/current/usr/bin¡¯. find: File system loop detected; ¡®/snap/ffmpeg/1286/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/ffmpeg/1286/usr/bin¡¯. find: File system loop detected; ¡®/snap/odrive-unofficial/2/usr/bin/X11¡¯ is part of the same file system loop as ¡®/snap/odrive-unofficial/2/usr/bin¡¯. find: ¡®/snap/core18/2344/etc/ssl/private¡¯: Permission denied
I stopped cut here, pages and pages of files found...
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/11/22 06:09, Adrian Fewster wrote:
Try
cd /home/dcole/scripts/solar_data/incoming
find -L / -samefile lotwcount.txt
..extra symbols have appeared in below ?
On 11/6/22 23:02, Dave (NK7Z) wrote:
|find -L / ||-samefile |/home/dcole/scripts/solar_data/incoming/lotwcount.txt
|
Let me learn a bit more about Ubuntu groups, and I will return later. I clearly am beyond my knowledge base here...
I see no group for node-red anywhere...
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:33, Adrian Fewster wrote: also sudo usermod -a -G node-red-group dcole On 11/6/22 23:30, Adrian Fewster via groups.io wrote:
Dave I agree with Mick on below, and it will probably fix your issue.
Doing the other things mentioned are useful in general.
Will be good to know what the link(s) are tho
73
Adrian
On 11/6/22 23:18, Mick - W8BE wrote:
[Edited Message Follows]
Dave,
Your file permissions are fine for read and write.
-rw-rw-rw- 1 dcole dcole 3 Jun 11 05:20 /home/dcole/scripts/solar_data/incoming/lotwcount.txt. What group is node red being run from? You can check /etc/group. If it is not in the same group you can add dcole to the node red group
chown 'node-red-group':dcole //home/dcole/scripts/solar_data/incoming/lotwcount.txt
Can you even write to the file? From all the above posts, I am getting the impression you can't even write to it.
At this point Dave,? I would just work with Adrian on this. Too many cooks in the kitchen.
-- Mick, W8BE
|
BTW Adrian,
THANK YOU for taking the time to help me in this! I do appreciate it. The task of reading a file seemed so simple when I started. :)
I get:
dcole@nostromo:~$ ps ax o user,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,comm,group,gid | grep node root 3771 3.9 0.5 983616 134424 ? Sl Jun 07 03:28:02 node-red root 0
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
toggle quoted message
Show quoted text
On 6/11/22 06:41, Adrian Fewster wrote: $ ps ax o user,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,comm,group,gid | grep node to check node-red user, group, On 11/6/22 23:33, Adrian Fewster via groups.io wrote:
also
sudo usermod -a -G node-red-group dcole
On 11/6/22 23:30, Adrian Fewster via groups.io wrote:
Dave I agree with Mick on below, and it will probably fix your issue.
Doing the other things mentioned are useful in general.
Will be good to know what the link(s) are tho
73
Adrian
On 11/6/22 23:18, Mick - W8BE wrote:
[Edited Message Follows]
Dave,
Your file permissions are fine for read and write.
-rw-rw-rw- 1 dcole dcole 3 Jun 11 05:20 /home/dcole/scripts/solar_data/incoming/lotwcount.txt. What group is node red being run from? You can check /etc/group. If it is not in the same group you can add dcole to the node red group
chown 'node-red-group':dcole //home/dcole/scripts/solar_data/incoming/lotwcount.txt
Can you even write to the file? From all the above posts, I am getting the impression you can't even write to it.
At this point Dave,? I would just work with Adrian on this. Too many cooks in the kitchen.
-- Mick, W8BE
|
Adrian and John
Rather than changing the file permissions, can John simply read the file with a sudo prefix?
If so, John, prepend the below, to your read command:
?"sudo -S <<< "password" <insert command here>
Alan. WA9WUD
|