- Posts: 55
- Thank you received: 7
Can't save file to samba share
6 years 4 months ago #173039
by Bats
Can't save file to samba share was created by Bats
When I try to save a file from gmoccapy 3.0.8.2's internal editor (either to the original file, or to a new filename) to a mounted samba share, I get " OSError: [Errno 1] Operation not permitted: '[filename]' " (as seen below)
The file(s) and directory are owned by root, but world r/w/x (because ntfs is ugh), and I have no trouble creating/editing files there from the command line, with vim/gedit (all under the same username as I'm running linuxcnc), or even the editor in Axis.
Is this something broken in the software, or something I broke?
I'm open to suggestions and/or requests for further information, if it's likely to help.
-Bats
The file(s) and directory are owned by root, but world r/w/x (because ntfs is ugh), and I have no trouble creating/editing files there from the command line, with vim/gedit (all under the same username as I'm running linuxcnc), or even the editor in Axis.
Is this something broken in the software, or something I broke?
I'm open to suggestions and/or requests for further information, if it's likely to help.
-Bats
Please Log in or Create an account to join the conversation.
6 years 4 months ago #173055
by tecno
Replied by tecno on topic Can't save file to samba share
Compress the files and you can save.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #173056
by Aciera
Replied by Aciera on topic Can't save file to samba share
@bats
I'm sorry I can't really help you there maybe norbert will answer this.
@tecno
He wants to save the code from inside the code editor of Gmoccapy. Saving it from outside the editor is not the problem.
I'm sorry I can't really help you there maybe norbert will answer this.
@tecno
He wants to save the code from inside the code editor of Gmoccapy. Saving it from outside the editor is not the problem.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #173061
by tecno
Replied by tecno on topic Can't save file to samba share
Only way I can copy via Samba to a Win machine is to compress, Save a .py will not work for me anyways.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #173150
by Bats
Replied by Bats on topic Can't save file to samba share
Aciera has it right. There's no problem copying files to/from the samba share, nor editing/saving files with other editors. Even using Axis's (semi)internal editor is just fine. It's not a matter of linux vs. win textfile formats, either (which I suppose might cause problems with .py files, from what little I remember about Python's use of whitespace). It's only gmoccapy's code editor that throws an error.
Interestingly enough, though, it looks like it's not a complete failure to write. When I try to save to a new file, it throws the "operation not permitted" error, but it looks like the file is still created and written to. Trying to save to the current file, on the other hand, gives "OSError: [Errno 2] No such file or directory" and doesn't update the file. I'll try to post a screenshot of that error a little later - I'm typing on the wrong PC right now.
-Bats
Interestingly enough, though, it looks like it's not a complete failure to write. When I try to save to a new file, it throws the "operation not permitted" error, but it looks like the file is still created and written to. Trying to save to the current file, on the other hand, gives "OSError: [Errno 2] No such file or directory" and doesn't update the file. I'll try to post a screenshot of that error a little later - I'm typing on the wrong PC right now.
-Bats
Please Log in or Create an account to join the conversation.
6 years 4 months ago #173152
by Bats
Replied by Bats on topic Can't save file to samba share
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds