NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

gonzonia's avatar
gonzonia
Aspirant
Aug 12, 2016
Solved

Mimic "Set ownership and permission for ...." in cron?

I previously posted an issue I was having with Backup errors

 

https://community.netgear.com/t5/Using-your-ReadyNAS/Backup-FROM-ReadyNAS-NVX-to-OSX-with-NFS/m-p/1099388

 

 

I find now that whenever I copy something over to the directory being backed up I need to manually go into Frontview and run the "Set ownership and permission for existing files and folders in this share to the above settings." to clear or prevent the error. 

 

The NAS is being used at home and there really aren't multiple users so I'm not concerned about having to do this and it causing problems for anyone else. However, I'd rather not have to do this manually. 

What command(s) are being run when I check that? Can I set up a cron job that runs the same command 30 min before the backup each night?

 

Thanks. 

 

Running RAIDiator 4.2.28

  • If you run top and use the "c" toggle you can see that the commands are chown -R user:group /c/sharename and chmod -R xxx /c/sharename (xxx being determined by the permissions you set).

     

    This still seems like the wrong solution to me.  Why not just create a matching group on the mac?  or reset the GID for staff?

12 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    A simpler way is to set up NAS credentials in the windows credentials manager for each PC using the system.  You can use the same credentials in every PC (and it can be any NAS account, including admin).

     

    Not sure what the OSX equivalent is - keychain?

    • gonzonia's avatar
      gonzonia
      Aspirant

      I'll try connecting to the share as admin and see if that fixes the issue. Thanks. 

       

      EDIT: Nope. Still get the error. 

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        gonzonia wrote:

        I'll try connecting to the share as admin and see if that fixes the issue. Thanks. 

         

        EDIT: Nope. Still get the error. 


        Is the share owned by admin?  Do you have guest access enabled?

         

        Also, are you using smb/cifs or afp???

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More