Koozali.org: home of the SME Server

Simple way to create webspace accounts?

Joe Bob

Simple way to create webspace accounts?
« on: November 11, 2003, 07:31:04 AM »
Love the SME box.  Super stable.

I have created accounts for a few friends so they can use my box as a webspace.  I followed this procedure:

Create a new user
Set a quota
Created a new group
Made that new user a part of the group
Created an ibay for them with write access for that group, read for all
Done.

It kind of takes a while.  

Is there an easier way to create web spaces for people to use that does not require creating individual groups for each user?

Just looking for a shortcut to creating simple web space folders for friends.  

Thanks.

Jáder Marasca

Re: Simple way to create webspace accounts?
« Reply #1 on: November 11, 2003, 02:24:47 PM »
Do a search on contribs.org for web space or user web space !

There is a very nice addon!
I have it working on my server, take a look

       www.linuxfacil.net/~jader/

Joe Bob

Re: Simple way to create webspace accounts?
« Reply #2 on: November 12, 2003, 05:00:46 AM »
What is the name of the add-on you have running?

I had no luck in my search.. :-(

Thanks!

Del

Re: Simple way to create webspace accounts?
« Reply #3 on: November 13, 2003, 05:10:25 AM »

Joe Bob

Re: Simple way to create webspace accounts?
« Reply #4 on: November 14, 2003, 01:45:46 AM »
Thanks it does.  The readme was a bit sketchy.  

If anyone has any other suggestions pass them along.  

I want to set up a box with an easy way to create simple accounts for friends and family to have a web space to use for pics and things.

Thanks.

Jo

Re: Simple way to create webspace accounts?
« Reply #5 on: November 14, 2003, 04:12:32 AM »
Joe Bob wrote:

> I want to set up a box with an easy way to create simple
> accounts for friends and family to have a web space to use
> for pics and things.

The easiest way if for you to just set up i-bays and have them owned by groups that your friends and families belong to. Your friend Joe's website could be:

http://your.web.site/joe/

or

http://joe.your.domain/

(if you set up DNS correctly)

J.

Joe Bob

Re: Simple way to create webspace accounts?
« Reply #6 on: November 14, 2003, 10:06:15 PM »
Good point.

However, for an individual ibay to be controlled by only one person, I would need to create a group that only had one user in it and make that group the one with control over that single ibay.

One person -> in one group -> controlling one ibay.

etc.

I was hoping to just skip the creation of groups and ibays and have a system where I can add a user and they would automatically have a web folder with ftp access to it.

Maybe a pipe dream?

Still looking for an easy solution....

Note: part of my interest is to use an SME box at my school and create an account for each student with access to a web folder.  Making a group and ibay for each kid would take a long time....

Thanks.

Joe Bob

Re: Simple way to create webspace accounts?
« Reply #7 on: November 14, 2003, 11:02:27 PM »
Follow-up:

I did install this rpm for user webspace.
http://nomad.homelinux.net/esmith/library/addons/webspace/

All went well until I realized that there was a permission problem with people being able to view the contents of the web folder.

The author's solution was another script that ran every 5 min to reset all user's web folder permissions!  Not really what I had in mind...

The rpm has a good intent:  You create a user, set their password, and then they are ready to go with a "public_html" folder inside their home folder.  And they have ftp access to it.  Turns out the default permissions on the folder do not allow anyone to see the contents.   Hence the "fix" script.

Back to square one?? (banging my head on the wall)

Martin Watson

Re: Simple way to create webspace accounts?
« Reply #8 on: November 14, 2003, 11:40:20 PM »
Hi,
How about e-smith-user-webspace, sounds a likely candidate.

http://www.watson-trant.homeunix.net/downloads/e-smith/web/

There's a howto doc in there as well.
Cheers,

Martin.

Joe Bob

Re: Simple way to create webspace accounts?
« Reply #9 on: November 15, 2003, 02:52:56 AM »
Thanks, but that is the exact same rpm I was using that had the permissions errors.

Has anyone used this rpm successfully?  

Still looking (and banging my head on the wall).

Thanks for all the input and keep it coming.  If I find the "perfect solution" I will post how it worked out so others can learn.

:-)

SME servers rock now, and will really rock when I can get this implemented.

Abe Loveless

Re: Simple way to create webspace accounts?
« Reply #10 on: November 17, 2003, 09:59:52 PM »
I think it depends on how the users are creating their files/directories that actually affects the permissions.

I assume they're creating their files through their mapped drive, using Samba.

This post from Damien Curtain (who wrote the original rpm, I believe):
http://e-smith.org/bboard/read.php?f=3&i=5827&t=5699 mentions the /etc/smb.conf file.


After briefly looking at this file, it looks like the smb.conf file specifies the permissions that are to be used when files/directories are created through Samba.  I'm thinking that  a new section needs to be specified for the "WebFiles" with different permissions in place.  Once someone comes up with the working section, it can be put into a template fragment.. and possibly added back into the rpm for everyone to use.

You guys have a little time to play with it?  I'll be happy to help with the rpm work when we get to that point.

Abe Loveless

Re: Simple way to create webspace accounts?
« Reply #11 on: November 17, 2003, 11:56:10 PM »
It may be that simply altering the [homes] section is all that is needed.

Try these settings for /etc/smb.conf

[homes]
comment = Home directory
browseable = no
guest ok = no
read only = no
writable = yes
printable = no
create mode = 0644
force create mode = 06440
directory mode = 0755
force directory mode = 0755
path = /home/e-smith/files/users/%S/home

This comes from this howto:
http://mirror.contribs.org/smeserver/contribs/thaynes/beta/howto/samba/