Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Nodered-Hamradio
- Messages
Search
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...
toggle quoted message
Show quoted text
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 On 6/11/22 06:33, Adrian Fewster wrote:
also |
Re: Permissions question...
OK, you mean put on the changes you wanted, THEN do sudo find -L / -samefile lotwcount.txt?
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 06:27, Adrian Fewster wrote:
Do visudo edit, then |
Re: Permissions question...
Hi,
toggle quoted message
Show quoted text
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 On 6/11/22 06:18, Mick - W8BE wrote:
[Edited Message Follows] |
Re: Permissions question...
Same result sir:
toggle quoted message
Show quoted text
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 |
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...
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 06:04, Adrian Fewster wrote:
Also see ; It's very useful when running scripts, processes with sudo lines. |
Re: Permissions question...
Will do, and I thank you for the help sir!
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 06:04, Adrian Fewster wrote:
Also see ; It's very useful when running scripts, processes with sudo lines. |
Re: Permissions question...
I assume so... As I mentioned I am new at Node-Red...
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 06:01, Adrian Fewster wrote:
Ok. So that just does 'return msg;' ? |
Re: Permissions question...
Adrian,
toggle quoted message
Show quoted text
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 On 6/11/22 05:53, Adrian Fewster wrote:
Also what is the link to the file ? |
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.
toggle quoted message
Show quoted text
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? |
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...
toggle quoted message
Show quoted text
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 ; |
Re: Permissions question...
BTW, the file is created by a perl script I run under dcole, same group the file is owned by.
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources 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. |
Re: Permissions question...
Hi Adrian,
toggle quoted message
Show quoted text
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 |
Re: Permissions question...
Hi Mick,
toggle quoted message
Show quoted text
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 On 6/10/22 22:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output: |
Re: File /!1! Flows by Type/RADIOS/HRD_ve9gfi_2022.06.08.2130.json updated
#file-notice
Hi Adrian, ? I created two dynamic dropdown lists, and each one works. Then I added a Switch node to select what list should be used, based on the getradio response.? ? I'm stuck ... but I wanted to share that this will work for your radio and mine, automatically, if I can get the Switch node to cooperate. I tried using both the msg.payload output from MQTT and the flow.getradio variables... same response (not working). It's Saturday here, and I need to run the roads ...? If you see my error, please let me know. ? EDIT>>>? The one thing that comes to mind is that perhaps the getradio and mqtt string is UTF16 and is not matching my typed in string. Greg VE9GFI ? |
Re: Permissions question...
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"?
|
Permissions question...
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 |
to navigate to use esc to dismiss