Forum Moderators: phranque

Message Too Old, No Replies

My Dedicated Server running Fedora Core 2- chmod only one domain?

file permissions fedora dedicated host

         

matthewamzn

2:36 pm on May 30, 2005 (gmt 0)

10+ Year Member



I have a dedicated server. It's running Fedora Core 2 and Plesk. I only have one ip address. I have one client with five domains.

How can I change the file permissions for one of these domains? I'm using Putty to SSH my server (using the ip address) and logging in using my general username and password. What exactly is the command to change the root file file permissions for just one domain.

When I only have one domain and one ip address, I would type:
CHMOD -a 744
or CHMOD 755 <filename>

But I'm confused now with the multiple domains. Anybody know what exactly I need to type when I logged into my server?

physics

10:04 pm on May 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Matthew. Why do you want to change the permissions? So that the client can log in and edit the files themselves?
First you need to figure out where the files are located for each domain. Then, let's say that one domain is example.com You'd go into the domain below that so you see:
$ls -a
example.com
...

Then do
chmod 755 example.com -R

This makes example.com and all files and directories under it writeable and executable by the owner and executable by everyone else.

To change the owner do similarly
chmod uname.uname example.com -R

However, if your goal is really to let the client edit themselves you might want to create a new user account and set up the domains from within that account. They they would have their own cpanel account / ftp to log in (maybe?). I don't use Plesk so am not sure how that works.