January 27, 201214 yr A few days ago I went from 4.7 to 5.0b14. This went pretty smooth but..... I have SABNZB running and there a categorie. named netgear, defined which writes to a mounted SMB-share. This share is at mount-point /mnt/netgear. The absolute path in this categorie is set as /mnt/netgear/DVD. When i load an NZB in SAB and set the categorie to netgear it starts downloading happily. When download finishes I get an error: Postprocessing was aborted (Cannot create final folder /mnt/netgear/DVD/<name of download>. Is there something wrong with permissions? It used to work in 4.7. Copying files to this share in Midnight Commander also works.
January 27, 201214 yr A few days ago I went from 4.7 to 5.0b14. This went pretty smooth but..... I have SABNZB running and there a categorie. named netgear, defined which writes to a mounted SMB-share. This share is at mount-point /mnt/netgear. The absolute path in this categorie is set as /mnt/netgear/DVD. When i load an NZB in SAB and set the categorie to netgear it starts downloading happily. When download finishes I get an error: Postprocessing was aborted (Cannot create final folder /mnt/netgear/DVD/<name of download>. Is there something wrong with permissions? It used to work in 4.7. Copying files to this share in Midnight Commander also works. It is most likely permissions related. Midnight command works most likely because you are telnet'ed into the server as the "root" user. SABnzbd is probably running as the "nobody" user if the folder and files at /mnt/netgear/DVD are owned by root:root (user:group) then SABnzbd will more than like not be able to create an folders/files at that mount point. You probably need to fix the permissions on the netgear box before SABnzbd will be able to write to it. A "chown -R nobody:users /mnt/netgear/DVD" will likely fix the issue.
January 27, 201214 yr Author A few days ago I went from 4.7 to 5.0b14. This went pretty smooth but..... I have SABNZB running and there a categorie. named netgear, defined which writes to a mounted SMB-share. This share is at mount-point /mnt/netgear. The absolute path in this categorie is set as /mnt/netgear/DVD. When i load an NZB in SAB and set the categorie to netgear it starts downloading happily. When download finishes I get an error: Postprocessing was aborted (Cannot create final folder /mnt/netgear/DVD/<name of download>. Is there something wrong with permissions? It used to work in 4.7. Copying files to this share in Midnight Commander also works. It is most likely permissions related. Midnight command works most likely because you are telnet'ed into the server as the "root" user. SABnzbd is probably running as the "nobody" user if the folder and files at /mnt/netgear/DVD are owned by root:root (user:group) then SABnzbd will more than like not be able to create an folders/files at that mount point. You probably need to fix the permissions on the netgear box before SABnzbd will be able to write to it. A "chown -R nobody:users /mnt/netgear/DVD" will likely fix the issue. Thanks prostuff1, shouldn't utils/new permissions in 5.0b14 fix this? Or doesn't that change permissions on mounted shares? I sure have a lot to learn about Linux. UID, GID, permissions it's a lot to comprehend. I hope this all will fix the issue. Thanks again.
January 27, 201214 yr Author No, it didn't do the trick. still the same error. How can I check if SAB is running as "nobody" A file that I downloaded yesterday inside an array folder shows up as nobody:users the share /mnt/netgear/DVD is still root:root looks i cant chown this share
January 27, 201214 yr No, it didn't do the trick. still the same error. How can I check if SAB is running as "nobody" A file that I downloaded yesterday inside an array folder shows up as nobody:users the share /mnt/netgear/DVD is still root:root looks i cant chown this share a ps -ef and then finding the running SABnzbd process will tell you who it is running as. As far as chown'ing the netgear mount. Might have to do that from the netgear box... not really sure as I don't have one of those and have not messed with one before. But I do know that is what you have to do to be able to write to /mnt/netgear
January 27, 201214 yr Author No, it didn't do the trick. still the same error. How can I check if SAB is running as "nobody" A file that I downloaded yesterday inside an array folder shows up as nobody:users the share /mnt/netgear/DVD is still root:root looks i cant chown this share a ps -ef and then finding the running SABnzbd process will tell you who it is running as. As far as chown'ing the netgear mount. Might have to do that from the netgear box... not really sure as I don't have one of those and have not messed with one before. But I do know that is what you have to do to be able to write to /mnt/netgear that is also not working still the same error i chowned it on the netgear to nobody:users, but still cant write can sab be run as root:root? Maybe the share wasn't mounted correctly? On 4.7 I used smbmount - ip-address/media - -mount-point but smbmount won't work in 5.0b14 (see other post of me) so in 5.0b14 i used: mount -t cifs -o username=media,password= //ip-adres/media /mount-point mayb something needs to be added to the mount command
January 27, 201214 yr No, it didn't do the trick. still the same error. How can I check if SAB is running as "nobody" A file that I downloaded yesterday inside an array folder shows up as nobody:users the share /mnt/netgear/DVD is still root:root looks i cant chown this share a ps -ef and then finding the running SABnzbd process will tell you who it is running as. As far as chown'ing the netgear mount. Might have to do that from the netgear box... not really sure as I don't have one of those and have not messed with one before. But I do know that is what you have to do to be able to write to /mnt/netgear that is also not working still the same error i chowned it on the netgear to nobody:users, but still cant write can sab be run as root:root? sure, but not via my unMenu packages on 5.0bX. Running it as root is NOT the proper approach in this instance. If I had to guess the mount point in /mnt for netgear is probably root:root. An ls -al /mnt/ should reveal it. You need to fix the mount and then it should work. A su nobody -c "MOUNT_COMMAND_STUFF_HERE" might be what you need to do.
January 27, 201214 yr Author No, it didn't do the trick. still the same error. How can I check if SAB is running as "nobody" A file that I downloaded yesterday inside an array folder shows up as nobody:users the share /mnt/netgear/DVD is still root:root looks i cant chown this share a ps -ef and then finding the running SABnzbd process will tell you who it is running as. As far as chown'ing the netgear mount. Might have to do that from the netgear box... not really sure as I don't have one of those and have not messed with one before. But I do know that is what you have to do to be able to write to /mnt/netgear that is also not working still the same error i chowned it on the netgear to nobody:users, but still cant write can sab be run as root:root? sure, but not via my unMenu packages on 5.0bX. Running it as root is NOT the proper approach in this instance. If I had to guess the mount point in /mnt for netgear is probably root:root. An ls -al /mnt/ should reveal it. You need to fix the mount and then it should work. A su nobody -c "MOUNT_COMMAND_STUFF_HERE" might be what you need to do. Something I added to prevous message: Maybe the share wasn't mounted correctly? On 4.7 I used smbmount - ip-address/media - -mount-point but smbmount won't work in 5.0b14 (see other post of me) so in 5.0b14 i used: mount -t cifs -o username=media,password= //ip-adres/media /mount-point mayb something needs to be added to the mount command I guess I have to unmount the share first and then add sudo nobody when remounting it? Are there things that need to be done on the Netgear? Or can all this be done on the Unraid server?
January 27, 201214 yr Author I tried: su nobody -c mount -t cifs -o username=media,password= //192.168.xxx.xxx/media /mnt/netgear and I get this: su: invalid option -- 't' Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd What did I do wrong?
January 27, 201214 yr Author put quote marks around it like my example shows. Then I get: mount: only root can do that Boy o boy, this takes a lot of patience Makes me wonder: What all has changed from 4.7 to 5.0b14? Shoul I put this ' or this " around it?
January 27, 201214 yr put quote marks around it like my example shows. Then I get: mount: only root can do that Boy o boy, this takes a lot of patience Makes me wonder: What all has changed from 4.7 to 5.0b14? Shoul I put this ' or this " around it? double quote (the second one)
January 27, 201214 yr Author put quote marks around it like my example shows. Then I get: mount: only root can do that Boy o boy, this takes a lot of patience Makes me wonder: What all has changed from 4.7 to 5.0b14? Shoul I put this ' or this " around it? double quote (the second one) Tried both. Both time same result.
January 27, 201214 yr Well, someone else might have to chime in then. LimeTech obviously got the permissions for /mnt/disk* set to nobody:users somehow. the only thing I can recommend at this point is to google search "man mount" and the like to see what you get back.
January 27, 201214 yr Author Well, someone else might have to chime in then. LimeTech obviously got the permissions for /mnt/disk* set to nobody:users somehow. the only thing I can recommend at this point is to google search "man mount" and the like to see what you get back. Prostuff1 thank you, so far. Maybe you can contact someone who knows te ins and outs of this matter, Somehow I get the feeling you are closer to them then I am. Thanks again.
January 27, 201214 yr Author Hi prostuff1, I mounted the share this way (I added uid and gid) mount -t cifs -o username=media,password=,uid=nobody,gid=users //192.168.10.101/media /mnt/netgear and SABNZB saved its first download to the share. Yippie. I hope it stays that way. I used information that I found here: http://opensuse.swerdna.org/susesambacifs.html#tempsec Thanks for all the help and have a nice weekend.
January 28, 201214 yr Hi prostuff1, I mounted the share this way (I added uid and gid) mount -t cifs -o username=media,password=,uid=nobody,gid=users //192.168.10.101/media /mnt/netgear and SABNZB saved its first download to the share. Yippie. I hope it stays that way. I used information that I found here: http://opensuse.swerdna.org/susesambacifs.html#tempsec Thanks for all the help and have a nice weekend. Great!! Glad you got it figured out.
January 28, 201214 yr Author Still think it is strange that the smbmount=command doesn't work. It seems to rely on mount.cifs, which is either corrupt or non-existent in 5.0b14.
January 28, 201214 yr I think it was accidentally left out in the latest beta because of the update to SMB2. I think the explanation was that the samba guys broke smbmount into its own project or something like that and Tom did not realize that.
January 30, 201214 yr Author Is it possible to make some sort of batchfile holding these lines: mkdir /mnt/netgear mount -t cifs -o username=media,password=,uid=nobody,gid=users //192.168.10.101/media /mnt/netgear and place it on the flash drive or some other place, so I can call it when the server is rebooted?
January 30, 201214 yr Is it possible to make some sort of batchfile holding these lines: mkdir /mnt/netgear mount -t cifs -o username=media,password=,uid=nobody,gid=users //192.168.10.101/media /mnt/netgear and place it on the flash drive or some other place, so I can call it when the server is rebooted? You should be able to place those lines in the go script and then everything will run when the server boots.
January 30, 201214 yr Author Is it possible to make some sort of batchfile holding these lines: mkdir /mnt/netgear mount -t cifs -o username=media,password=,uid=nobody,gid=users //192.168.10.101/media /mnt/netgear and place it on the flash drive or some other place, so I can call it when the server is rebooted? You should be able to place those lines in the go script and then everything will run when the server boots. Can you recommend a good editor for Windows that will handle script files fine? I don't trust Notepad or Wordpad and I am not comfortable with VI.
January 30, 201214 yr Is it possible to make some sort of batchfile holding these lines: mkdir /mnt/netgear mount -t cifs -o username=media,password=,uid=nobody,gid=users //192.168.10.101/media /mnt/netgear and place it on the flash drive or some other place, so I can call it when the server is rebooted? You should be able to place those lines in the go script and then everything will run when the server boots. Can you recommend a good editor for Windows that will handle script files fine? I don't trust Notepad or Wordpad and I am not comfortable with VI. type in a telnet session: mcedit /boot/config/go not the greatest editor but is better than vi if you don't know vi.
January 31, 201214 yr Can you recommend a good editor for Windows that will handle script files fine? I don't trust Notepad or Wordpad and I am not comfortable with VI. TextPad works well for me, can save in *nix or Windows mode
Archived
This topic is now archived and is closed to further replies.