+ Post New Thread
Results 1 to 9 of 9
*nix Thread, Permissions help needed, Apache2 and FTP in Technical; Hi All, I have followed this very excellent guide: FTP and Web server [Bishop Barrington IT Wiki] in order to ...
  1. #1
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63

    Permissions help needed, Apache2 and FTP

    Hi All,

    I have followed this very excellent guide: FTP and Web server [Bishop Barrington IT Wiki]

    in order to create an ftp / webserver for the students but I have run into problems...

    Winbind is working fine and the server has been joined to the domain sucessfully, with the students home directories being created also.

    If i try to access FTP using ANY username and password (students ot staff) I get access denied.

    Any idea what I need to be looking for?

    Permissions on the student home folders are as follows:
    drw-rw-r-- 2 [studentname] domain users

    I am running Ubuntu 8.10 fully updated.

  2. #2

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Are you getting access denied before or after you login to the FTP server? Some ftpds ship with a default configuration that will deny any logins, regardless of whether they're good or not.

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,033 Times in 813 Posts
    Rep Power
    341
    Quote Originally Posted by ICTNUT View Post

    Permissions on the student home folders are as follows:
    drw-rw-r-- 2 [studentname] domain users
    try adding execute perms to the directory, you need read and execute to be able to open a directory

  4. #4
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63
    Quote Originally Posted by CyberNerd View Post
    try adding execute perms to the directory, you need read and execute to be able to open a directory
    I have changed the permissions on a test student folder to 755 to see if that is the case.

    I will test it shortly and let you know

  5. #5
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63
    As an update:

    This is what I have in the Auth.log File for the user in questions:

    Nov 14 13:27:22 4428-web-04 vsftpd: pam_winbind(vsftpd:auth): getting password (0x00000000)
    Nov 14 13:27:22 4428-web-04 vsftpd: pam_winbind(vsftpd:auth): user 'robertdavies' granted access
    Nov 14 13:27:22 4428-web-04 vsftpd: pam_winbind(vsftpd:account): user 'robertdavies' OK
    Nov 14 13:27:22 4428-web-04 vsftpd: pam_winbind(vsftpd:account): user 'robertdavies' granted access
    So the FTP -> winbind seems to be working ok so it must be a directory permssions issue, I have even given 777 access on the users folder but I am still getting acess denied.

    going to see if I can gleen something from the ftp logs.

    BRB

  6. #6
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63
    BUMP

    Anyone got any ideas, i cannot see anything wrong with this....

  7. #7

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Do the users have valid shells? Can you login, su to a student account and get access/write to a directory directly?

  8. #8
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63
    Seems to work ok.

    I am able to su the student account and when I do a PWD I am in the directory in question:

    /home/JKHS-PD/studentname

  9. #9
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63
    Went back to basics and accessed ftp via the windows command line and it worked.

    Upon further investigation Macromedia Dreamweaver is where the problem lies as it tries to CD you into a directory that does not exisit. Have installed a basic freebie FTP tool onto the workstations and bingo all springs to life



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 22
    Last Post: 20th June 2014, 11:41 PM
  2. FTP Folder Permissions...
    By RTi in forum EduGeek Joomla 1.5 Package
    Replies: 5
    Last Post: 21st July 2008, 09:44 AM
  3. Apache2 SSL
    By Jackd in forum *nix
    Replies: 12
    Last Post: 5th December 2007, 02:15 PM
  4. Apache2 & LDAP
    By jasonyates in forum How do you do....it?
    Replies: 4
    Last Post: 6th November 2007, 11:03 AM
  5. Replies: 4
    Last Post: 15th March 2007, 09:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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