Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

sftp and permissions

  • 10-07-2008 3:54pm
    #1
    Registered Users, Registered Users 2 Posts: 4,359 ✭✭✭


    hi,

    just a query, i create a file with permissions 664 and when i sftp to another server and send this same file it ends up there but with permissions 644. is there away of setting this up so that you always send the file as 664...without having chmod everytime?

    cheers


Comments

  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    Cronjob to chmod the directory every few mins maybe?


  • Registered Users, Registered Users 2 Posts: 4,359 ✭✭✭jon1981


    the problem is that regardless of the permissions i set the file to when i SFTP to another server it always revert back to 644. i have changed the umask to 002. is there anything else i should be doing~?


  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    Its reverting server side or client side?


  • Registered Users, Registered Users 2 Posts: 3,568 ✭✭✭ethernet


    Have to ask, but are you using -p to preserve permissions?


  • Registered Users, Registered Users 2 Posts: 4,359 ✭✭✭jon1981


    its reverting on the destination box i sftp into

    no im not using any switches, sftp is a feature of an application residing on the unix machine. and the application doesnt allow you to do anything other than log in and put or get


  • Advertisement
Advertisement