How do I assign trustee rights from within a script?

I'm doing a file migration from NetWare to my OES 2018.3 server. I have all the files but no trustee rights. This is not unexpected, but that's another lengthy story.

rights -f /media/nss/DATA/VOL1/Office -r RWCEMF trustee temp2.OU

I'm using the rights command to assign the trustee rights. When I run the command in a PuTTY session, it works; when I try to use a script, it doesn't.

I know next to nothing about creating linux scripts, although what I'm trying to do shouldn't be difficult. 

The first issue is that the result shows "No such file or directory". Unamused

__________
Kevin Boyle, 
Knowledge Partner

Calgary, Alberta, Canada

Parents Reply
  • 0   in reply to   
    and copied/pasted about 200 rights commands into my PuTTY session. That did the job although a script would have been much easier. 

    Sometimes we just have to do the IBM method (It's Better Manually, I even had that as a t-shirt as a kid of my IBMer dad)

    per chance, did you create the script on a Windows box?  If so, did you run the dos2unix command against it?

    ________________________

    Andy of KonecnyConsulting.ca in Toronto
    Please use the "Like" and/or "Verified Answers" as appropriate as that helps us all.

Children