==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    http://bugs.contribs.org/show_bug.cgi?id=7179

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

Michael McCarn <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Michael McCarn <[email protected]> ---
My understanding is that "chroot" restricts the user to the path chosen.

It does not alter, mask, or modify the rights that the user has to that folder.

"sudo", on the other hand, allows you to execute commands as "root",
circumventing any file rights issues.

So - if you set the chroot value for "bob" to a folder with 755 rights that is
owned by root or www, "bob" won't be able to write anything.

You'd need to add "bob" to the group that owns the folder, then change the
rights on the folder contents to "775".


Added to that, I don't know if the ftp session acts as the user you login as,
or if it acts as the user that is running ftp (so it may not be "bob" who needs
a new group memebership, it may be "ftp").

My recommendation:
- set the "chroot" value to the user's home folder
- use ftp to create a file
- verify the file ownership & rights settings
- if the owner of the new file is "bob" (the chroot'd ftp user), then add "bob"
to the group you created for running tomcat ("tomcat" if you followed the wiki
instructions for tomcat setup from http://wiki.contribs.org/Tomcat)
- change your chroot back to /opt/tomcat/webapps, or hard-link
/opt/tomcat/webapps into the user's home folder.
- try again

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to