[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Re: Default FTP login on RaQ2/3



Jay Tingley wrote:

> I would like to see this annoying feature removed so that whenever one
> creates a site admin, it is set to <site>/web instead of <site>/user.
> 
> Jeff - could you implement something like this for me that would work with
> the existing Cobalt GUI? If so, let's talk shop...

Which Jeff <smile>?  Me?  Moi??

I could do it.  I don't make changes to the GUI, though; I have enough
liability exposure as is <frown>.

What I could do is create a separate webpage you could go to that could
change someones "home" directory, from something like:

> test:x:144:100:TestUser:/home/sites/site23/users/test:/bin/bash

to something like:

> test:x:144:100:TestUser:/home/sites/site23/web:/bin/bash
 
The problem, as has been mentioned before, is that if anyone deletes
this user, he/she will also delete the entire website.

One option I'd already thought of is to only allow this for a
pre-determined admin, and to warn people not delete admins.  But someone
will do it eventually, and the whole site'll be gone <frown>.

And since the program will run from web-based input and run as root,
there are some security issues of course, but probably not much more
you'd get from the cobal gui.  And I could compile it, which would make
it a bit safer.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205