The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ftp permission

Discussion in 'General Discussion' started by mpi, Apr 11, 2006.

  1. mpi

    mpi Well-Known Member

    Joined:
    Mar 29, 2006
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    i had this included in an old post but i can't find the old post now.

    except for the root account, whatever other accounts there are, they can't write,rename, or do anything to the files.

    in other words, root is the only way my users can upload or edit their files....someone posted that it has something to do with the permissions.....how can i fix this?
     
  2. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    16
    chown files to user:user
     
  3. mpi

    mpi Well-Known Member

    Joined:
    Mar 29, 2006
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    sda

    http://www.computerhope.com/unix/uchown.htm

    would that change it to ONLY that use or will "root" always have access to all files?

    how can i check current permissions?
     
  4. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Root will always have access to all the files and folders irrespective of permissions and ownership.

    To check the permission and ownership of a file. Goto the particular directory by 'cd' command and then type :-
    ls -la filename << TO check permission and ownership.

    To change the ownership for a directory :-
    chown username:username directoryname -R
     
  5. mpi

    mpi Well-Known Member

    Joined:
    Mar 29, 2006
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    ty

    thank you, what you guys seemes to have worked since the permissions changed....but the account itself isn't working....when itry to ftp, it says host "ip address" or "Host" not found.......it makes no sense because i can still login with root....:confused:
     
  6. mpi

    mpi Well-Known Member

    Joined:
    Mar 29, 2006
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Help Help Help

    HELP FAST....PLEASE!

    i jsut tried going to mywebsite after running the chown command, and EVERY page says:

    Code:
    Forbidden
    You don't have permission to access / on this server.
    
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.34 Server at www.domain.com Port 80
    i tried putting a bank htaccess in every folder and it didn't do anything, i also restarted apache with no results as well..


    someone plese help me fast!
     
  7. mpi

    mpi Well-Known Member

    Joined:
    Mar 29, 2006
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    wow

    nevemind i figured it out

    to shehkar, a part of me hate you for making me go through that....it was riving me crazy...i did a google search and from the info i got i thought it was an apache attack. (which i have no idea what it is).....anyway.....

    i don't know if you knew this would happen or not, but next time you want to send that little line of code to someone, tell them that if they do it, no one will be able to access it!!!!

    solution to fix was:
    Chown username:nobody foler_name -R

    ...and yes, i did fiure it out ALL by myself. :p
     
Loading...

Share This Page