Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Prezes on May 08, 2003, 05:58:51 PM
-
hey,
I've posted a thread under the general forum (Access rights under Chroot) and had no help so far so I though I'll try here....
I've installed Chroot on my SME 5.6, and added a user who could only log into a folder under my Primary site.
However, my problem arises as to his rights. The user is unable to add or edit any files...
I've changed the folder under chmod to 777 and the user account is still unable to do anything
I've also changed the folder owner ship to the group under which the user exists, still no luck!
How can I change the setting to allow this user (or group) to add/modify/delete files ????
-
You've probably already done this, but have you checked the user:group ownership of the folder?
On another note, there is an alternate method to chroot. You can create a folder in the users home directory, then bind it to the folder in your primary site like this:
mount --bind /home/e-smith/files/primary/html/yourfolder /home/e-smith/files/users/username/files/yourfolder
Set file/folder permissions accordingly. When the user logs in through ftp, they can access the folder in the primary site through the mounted folder in their home directory.
To make it survive a reboot, put the command in /etc/rc.d/rc.local. (You might have to uses /bin/mount instead of just mount here).
Hope that was helpful