Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Moving files and permissions

  • 03-11-2010 11:39PM
    #1
    Registered Users, Registered Users 2 Posts: 2,906 ✭✭✭


    So I want to move the files for all of the websites on my linux webserver to a new directory accessed via a symlink from the original directory. If I copy the files over and make the symlinks, will all permissions stay intact??


Comments

  • Banned (with Prison Access) Posts: 1,183 ✭✭✭almighty1


    Copy them first and then have a look.


  • Registered Users, Registered Users 2 Posts: 2,906 ✭✭✭cian1500ww


    almighty1 wrote: »
    Copy them first and then have a look.
    Is there a way of printing out the permissions?? There's a lot of directories and files with different permissions.

    EDIT: Copied all the files over and renamed the original directory and made a symlink to the copied files and the permissions don't seem to be transferred. Keep getting a load of permission errors on the websites.


  • Registered Users, Registered Users 2 Posts: 2,906 ✭✭✭cian1500ww


    Figured it out, you have to use -prv in the cp command; -p for preserve, -r for recursive, and -v for verbose.


Advertisement