|
Register | Blogging | Today's Posts | Search |
|
Thread Tools | Display Modes |
07-01-2021, 04:10 PM | #2199 (permalink) |
I sleep in your hat
Join Date: Mar 2011
Location: Melbourne, Vic. Aus.
Posts: 1,847
|
Anyone used ssh from Windows to Linux and know much about perms? The problem I am having is writing to a network folder. My process was failing on file creation so I tried cp from the command line. The strange thing is the first try creates the file but leaves it empty and fails. If I try again with the empty file already there it is then able to write to it. Any ideas what might cause an issue like that?
|
07-03-2021, 07:38 PM | #2200 (permalink) | |
No Ice In My Bourbon
Join Date: Mar 2010
Location: /dev/null
Posts: 4,325
|
Quote:
have you tried making the path that you're writing to completely open in terms of permissions? e.g. chmod 777 /path/to/folder - it's possible that the issue could be coming from permissions on the folders that are parents to your target directory. Have you messed around with the setuid/setgid bits? This isn't an NFS share you're writing to, is it? What kind of process do you have that's writing to this location? Is it a program? PHP? Python or something? Bash script set up as a cron job? For some reason, I remember having an issue very similar to this, with a PHP program doing a SFTP transfer using PHPSECLIB - not sure if it's at all related (I think it was a permissions issue), but if you haven't figured it out by now, I'll try to dig through my notes for ya. Let me know. |
|
|