Koozali.org: home of the SME Server

Public Web Pages

Jim P BeVard

Public Web Pages
« on: April 09, 2003, 01:04:51 PM »
I Have installed e-smith-user-webspace-0.1-3.noarch.rpm, works good, but one problem...

When a user uploads their web page, the permissions aren't set correctly.

I was wondering if there is an automatic way to set all files in the public_html folder as 755. I don’t want to give users access to the shell to do this their self.

Thank you for any suggestions.

~Jim

Bob

Re: Public Web Pages
« Reply #1 on: April 09, 2003, 10:29:08 PM »
Surely if you set the access permissions for the "template" user that its copied from when a new user is created that will set the permissions correctly. Or is this problem for users you had on the system before you installed the webspace rpm?

Jim P BeVard

Re: Public Web Pages
« Reply #2 on: April 10, 2003, 03:24:53 AM »
I’ve had the problem with both. The directories have the correct permissions set, but when they upload the files they aren’t accessible to the public. I guess what I’m asking is, is there a way to make the permissions recursive, even for files uploaded via ftp?

or

is it secure to give users shell access, and create a .bash_profile to set the permissions on the file, and include a logout command in the .bash_profile. I could just have them use that everytime they load new pages...

I'm open to any other suggestions...

Thanks, Jim

Bob

Re: Public Web Pages
« Reply #3 on: April 10, 2003, 03:06:18 PM »
just tried this for myself for the first time since I installed the software - havent told the users about it yet. Seems I have the same permissions problem as you have encountered. Will investigate further and see if I can find a solution.