Re: Background color problem
Arnie:
Which Theme are you using (on the Site tab) for the Dashboard? If you've chosen Angular Theme then it will render with a white background, regardless of your having chosen a Dark Theme. See below:
 -- Mark
K0LO
|
Re: Permissions question...
Going off list with this, thanks to all for putting up with this much traffic!
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 07:37, Adrian Fewster wrote: Dave, Ok, I am happy to login via ssh access to check the items mentioned re service/visudo set etc. Otherwise Mick and Alan have recommendations posted. 73 Adrian Fewster On 12/6/22 00:31, Dave (NK7Z) wrote:
Hi Adrian,
At this point I am totally lost...? Sorry...? From what I gather, something in my install process has set up node-red to not be able to read files in my dcole directories.
dcole is the primary user setup with Ubuntu when it was installed via a net install script.? Running 20.04 now.? Fully updated, etc.
Now that I have thrown what is probably a lot of useless data in the hopes something may help, do you see anything I did wrong ion the install?
For reference, the install process was as follows:
1.? From Ubuntu's software installer, I selected Node Red, and installed it.
2.? I began writing flows...
3.? No other issues until now...
I have flows reading web pages, and showing results, etc...? Some of them parse the pages, only issues are reading local files so far...
That is the overview of what I have done so far with node-red.? I have been running Linux for a few years, but not deeply into it, as I am sure you can tell...? Thank you for your patience.
73, and thanks, Dave (NK7Z)
ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources
On 6/11/22 07:02, Adrian Fewster wrote:
Alan, Would you run node-red as root rather than your normal user,
when operating node red from that normal user's home .node-red folder ?
I am assuming that is Dave's setup..
I think setting it up correct may avoid other issues for Dave in the future.
The stat response gave us info on existing link(s) worth exploring also.
73
Adrian
On 11/6/22 23:55, Alan Blind, WA9WUD wrote:
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
|
Re: Permissions question...
Hi Adrian,
At this point I am totally lost... Sorry... From what I gather, something in my install process has set up node-red to not be able to read files in my dcole directories.
dcole is the primary user setup with Ubuntu when it was installed via a net install script. Running 20.04 now. Fully updated, etc.
Now that I have thrown what is probably a lot of useless data in the hopes something may help, do you see anything I did wrong ion the install?
For reference, the install process was as follows:
1. From Ubuntu's software installer, I selected Node Red, and installed it.
2. I began writing flows...
3. No other issues until now...
I have flows reading web pages, and showing results, etc... Some of them parse the pages, only issues are reading local files so far...
That is the overview of what I have done so far with node-red. I have been running Linux for a few years, but not deeply into it, as I am sure you can tell... Thank you for your patience.
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 07:02, Adrian Fewster wrote: Alan, Would you run node-red as root rather than your normal user, when operating node red from that normal user's home .node-red folder ? I am assuming that is Dave's setup.. I think setting it up correct may avoid other issues for Dave in the future. The stat response gave us info on existing link(s) worth exploring also. 73 Adrian On 11/6/22 23:55, Alan Blind, WA9WUD wrote:
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: File /!1! Flows by Type/RADIOS/HRD_ve9gfi_2022.06.08.2130.json updated
#file-notice
Hi Adrian,?
I'll check if it's a utf16 issue... and if that fails, I'll issue a temp update with a radio type dropdown as you suggest.? I'm out for breakfast now and I have lawn mowing etc to do later.? But I'll issue an update later.
Greg ve9gfi
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|
Re: Permissions question...
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
|