Current time: 11-27-2024, 11:55 AM Hello There, Guest! (LoginRegister)


Post Reply 
rights problems ?
Author Message
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #1
rights problems ?
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
07-11-2008 04:36 AM
Find all posts by this user Quote this message in a reply
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #2
RE: rights problems ?
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 ?
07-11-2008 06:53 AM
Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #3
RE: rights problems ?
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.
07-11-2008 07:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #4
RE: rights problems ?
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 Smile

But thanks.

The -R was everything i needed
07-11-2008 07:05 AM
Find all posts by this user Quote this message in a reply
rycardo74 Offline
Junior Member
*

Posts: 19
Joined: Jun 2008
Reputation: 0
Post: #5
RE: rights problems ?
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.

Thanks for the tip, but i dont wanna wait for 12GB to transfer again, so im just doing it this way Smile

But thanks.

The -R was everything i needed

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
07-14-2008 04:01 AM
Find all posts by this user Quote this message in a reply
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #6
RE: rights problems ?
Yes i got it, just used it like this:

chown -R vu20xx /var/www/virtual/mydom.com/htdocs

Where xx is a number
07-14-2008 04:05 AM
Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #7
RE: rights problems ?
dont forgett the group ->
chown -R vuxxxx:vuxxxx /path/to/domain
07-14-2008 04:29 AM
Find all posts by this user Quote this message in a reply
DiXeoN Offline
Member
***

Posts: 284
Joined: Feb 2008
Reputation: 2
Post: #8
RE: rights problems ?
Well, it does actually work without setting the group..
07-14-2008 04:30 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)