Find the answer to your Linux question:
Results 1 to 2 of 2
Nice to meet you. I'm new to Linux. I'm running a server off of Fedora 7. I'm FTPing with vsftpd. I have the directory /var/www/sub. I have the user1 who's ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    1

    FTP Newbie Permissions Question

    Nice to meet you.
    I'm new to Linux.

    I'm running a server off of Fedora 7.
    I'm FTPing with vsftpd.

    I have the directory /var/www/sub.

    I have the user1 who's home directory is /var/www/sub/user1.
    I have the user2 who's home directory is /var/www/sub/user2.

    Right now, no matter who I login as for FTP (except anonymous) I can access all folders on the server.
    I only want user1 to be able to access /var/www/sub/user1 and user2 to only access /var/ww/sub/user2. I don't want them to have permissions to access any of the parent directories or any other folder on the server for that matter.

  2. #2
    Linux User
    Join Date
    Jun 2007
    Posts
    318
    Check the owner and permissions of each directory with the commands:

    ls -ld /var/www/sub/user1
    ls -ld /var/www/sub/user2

    Owner should be user1.user1 and user2.user2 respectively.
    The permissions should be: drwx------
    If they're not but something like drwxrwxrwx then this allows any user to access the directories.

    Use these commands to fix the permissions:

    chmod 700 /var/www/sub/user1
    chmod 700 /var/www/sub/user2

Posting Permissions

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