rights problems ? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: rights problems ? (/thread-3730.html) |
rights problems ? - DiXeoN - 07-11-2008 04:36 AM Hello.. I moved server today (not the way described in the docu. because that didnt work here, fucked up mysql and so, so I transfered all files with WinSCP and uploaded all databases manually), but now i got a problem, which is, that all folders is set to owner: root, which means that i cannot upload to them, chmod them or do anything (the WWW folders), how do i change the permissions so that i can do something to the folders again? Thanks. Frederik RE: rights problems ? - DiXeoN - 07-11-2008 06:53 AM Allright, im going to use chown, but it only does it for one dir, can i make it do to it to all subdirs too ? RE: rights problems ? - motokochan - 07-11-2008 07:03 AM Read the manpage for chown. You can use the -R flag to make it recursive. By the way, rsync would be a better transfer option as it can preserve permissions and owners if you pass the archive flag. RE: rights problems ? - DiXeoN - 07-11-2008 07:05 AM motokochan Wrote:By the way, rsync would be a better transfer option as it can preserve permissions and owners if you pass the archive flag. Thanks for the tip, but i dont wanna wait for 12GB to transfer again, so im just doing it this way But thanks. The -R was everything i needed RE: rights problems ? - rycardo74 - 07-14-2008 04:01 AM DiXeoN Wrote:motokochan Wrote:By the way, rsync would be a better transfer option as it can preserve permissions and owners if you pass the archive flag. Hi you have to use a -R (recursive) switch on chmod and chown command chown -r 2008:2008 /var/www/virtual/mydom.com/htdocs where 2008 is the user id and group id of the domain account for chmod you can use in this way chmod -r 0644 /var/www/virtual/mydom.com/htdocs ok? Ricardo Cabrera http://www.auyama.it RE: rights problems ? - DiXeoN - 07-14-2008 04:05 AM Yes i got it, just used it like this: chown -R vu20xx /var/www/virtual/mydom.com/htdocs Where xx is a number RE: rights problems ? - Zothos - 07-14-2008 04:29 AM dont forgett the group -> chown -R vuxxxx:vuxxxx /path/to/domain RE: rights problems ? - DiXeoN - 07-14-2008 04:30 AM Well, it does actually work without setting the group.. |