Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Duplicate folder then set Group, Owner & Permissions Recursively in WinScp. in the VPS & Dedicated forum
Hello, again... I am already able to duplicate files/folders from one domain and clone to another. What i am still not sure about is how ...

  1. #1
    JPC Senior Member
    Join Date
    Feb 2008
    Location
    Spotsy, Va.
    Posts
    50

    Duplicate folder then set Group, Owner & Permissions Recursively in WinScp.

    Hello, again...

    I am already able to duplicate files/folders from one domain and clone to another.

    What i am still not sure about is how to set "Group, Owner & Permissions" recursively inside that folder with out hosing it.

    The folder is duplicated from a domain with the correct permissions "chmod" already on the "files 644" and "folders 755".

    Where i am dropping the ball is on the "Group & Owner Permissions" which need to be set recursively to the specific domain that I cloned the folder too.

    I keep hosing the permissions. How can I use winscp in the gui interface to just chown recursively and not touch chmod permissions? I must not be checking a box or something right.
    Regards
    William

    ImpressCms.org

  2. #2
    JPC Senior Member
    Join Date
    Feb 2008
    Location
    Spotsy, Va.
    Posts
    50
    Would I add a custom command like this and edit it every time before I use it in winscp?

    chown mydomain.mydomain -R /home/mydomain/public_html/

    If this is correct how would I only chown the one folder down.

    Example: public_html/modules
    Regards
    William

    ImpressCms.org

  3. #3
    all about nothing! Frank Broughton's Avatar
    Join Date
    Jan 2006
    Posts
    2,158
    William if you figure it out please let us know here, as I did every file and directory one at a time last time I used root. It taught me not to work with the root login any longer. I always login with the account I am working on now. It is easy to setup and save multiple logins with WinSCP.

  4. #4
    JPC Senior Member
    Join Date
    Feb 2008
    Location
    Spotsy, Va.
    Posts
    50
    I have the correct chmod commands for winscp! I still need to figure out the chown commands for winscp but putty will do for chown atm.
    _______________________________________

    Using Putty or WinScp Custom Commands (chmod)
    Log in under root or account
    -----

    Warning:

    cd to/correct/dir/first

    #1
    -----
    chmod -R 755 *
    -----
    Changes all files and folders to 755 First
    All I do is right click public_html and run from winscp

    You can paste in winscp custom command and check the remote command box. Save it

    #2
    -----
    find -type f -print0|xargs -0 chmod 644
    -----
    Searches for all non-folders and chmod them 644
    All I do is right click public_html and run from winscp

    You can paste in winscp custom command and check the remote command box. Save it
    ______________________________________


    Using Putty Only from Root (chown)
    Im Still trying to get this to work in winscp
    -----

    chown account.account -R /home/account/public_html/

    chown account.nobody /home/account/public_html/
    Regards
    William

    ImpressCms.org

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •