Find the answer to your Linux question:
Results 1 to 6 of 6
Hi. I am fairly new at administrating a linux server. Currently I am using a dedicated virtual running apache and centos with plesk to manage the server. I have created ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4

    question about ownership and permissions

    Hi. I am fairly new at administrating a linux server.
    Currently I am using a dedicated virtual running apache and centos with plesk to manage the server.

    I have created clients and domains for each. I am having a few problems though.

    When I log in to FTP for each account, it takes you to /var/www/vhosts/sitename.com

    the problem is, each account has the ability to go back directories as far as /var

    how do i change the permissions so they cannot navigate beyond their own websites root folder.

    my other question is when I upload stuff through FTP, the ownership and group being assigned is usernamesacln

    The problem I run into is when I try to install a component for a CMS I use called Joomla, Joomla installs the components as apache:apache which means i cannot access those files from FTP unless I change permissions or ownership manually. What I've been doing is doing a chown -R username:apache for each persons webroot which I know is wrong but it was my only quick fix for testing.

    any help would be appreciated. thx

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    Quote Originally Posted by serialdan
    When I log in to FTP for each account, it takes you to /var/www/vhosts/sitename.com

    the problem is, each account has the ability to go back directories as far as /var

    how do i change the permissions so they cannot navigate beyond their own websites root folder.
    Which FTP server program is your server using? Most likely this is caused by a configuration file; e.g., if its vsftpd that you are using you would have to modify /etc/vsftpd.conf

    You should find a config option that allows you to set ownership of uploaded files as well.

    Figure out which ftpd you are using, then google its conf file.
    Operating System: GNU Emacs

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4
    thanks for the info.
    i believe i am using proftp.

    earlier I had edited /etc/proftpd.conf and made a few changes, restarted the server but the changes I made were not reflected.

    For example, the setting I changed was the ownership setting. Right now everything uploaded is username;psacln i changed psacln to apache but when I uploaded stuff it still came up as psacln.

    i know i have a million things to learn. i knew the basics over 10 years ago. now i have to re-learn everything.

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Location
    Calgary Alberta Canada
    Posts
    2
    Hello SerialDan,

    Once you have altered your config file, you will have to restart the service or force it to re-read it's config file. Not sure how that's done in your distro, but generally running something like

    Code:
    # /etc/init.d/proftp
    on a line by itself should give you some options / help output. Let me know how if that doesn't work for you.

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4
    thank you. I'llgive that a shot. The last time I made changes to it I just rebooted the entire server but the changes didnt take effect. I'll give it another shot and try just restarting the ftp service.

    thanks again

  6. #6
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4
    ok so now i have another problem

    I have only 1 type of ftp config file called proftpd.conf in /etc

    but inside /etc/init.d there is no ftp execution file. no proftp, nothing at all with ftp.

    how do i find out what ftp software my vps server is using so i can edit the correct configuration file. i edited proftpd.conf and rebooted the entire server but the changes were not reflected.

Posting Permissions

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