NAS200 jac2b: umask

Discussion in 'Cisco/Linksys Network Storage Devices' started by mdsilva, Apr 1, 2009.

  1. mdsilva

    mdsilva Addicted to LI Member

    Hi, first off, great firmware!

    Can anyone tell me how i can change the umask for root?

    I want to be able to scp files to my nas200 as root and have all users have read+write access. I could just "chmod 666" the files i upload but it would be nice if it automatic.:thumbup:
     
  2. jackito

    jackito LI Guru Member

    Try to create a file with name ".profile" (without the quotes of course) in root´s home directory. Inside the file put "umask 000" (again without the quotes), save it and re-login with root. It should work.
    Remember that by doing this all users will have rw access to new files and rwx access to new directories that root creates, from a security point of view is not good.
     
  3. mdsilva

    mdsilva Addicted to LI Member

    Hi, thanks for your reply.

    That works when i ssh (using putty), but It doesn't seem to pick up the umask when i use winscp. anything else i can try? :confused:
     
  4. jackito

    jackito LI Guru Member

    Try "Set permissions" option in "Upload Options" in "Transfer" section of WinSCP preferences. I never tested it, may be it will do the trick.
     
  5. mdsilva

    mdsilva Addicted to LI Member

    thankyou, that did the trick :)
     
  6. jackito

    jackito LI Guru Member

    You´re welcome. :wink:
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice