Scott White | 10 Apr 2008 21:52
Picon

[webmin-devel] How do I add a new default user to a webmin rpm?

I am using webmin 1.410 installed from the RPM. I want to build my own rpm for internally distributing on some servers.

The key feature I want to add to this build is another user without root access. I want a webmin account called "box-admin" that only has access to a few modules like firewall, net, time, etc. This way, certain level of users are not overwhelmed by all the functions available in webmin.

I have searched but could not find where the user information is stored in webmin, so I can add it to a distribution.  If it is easier, I can add a group/user to the linux box, but I really want the scaled down options for this user base.

Very cool and impressive application.

Thanks-
Scott

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
Jamie Cameron | 10 Apr 2008 22:38

Re: [webmin-devel] How do I add a new default user to a webmin rpm?

On 10/Apr/2008 12:52 Scott White wrote ..

I am using webmin 1.410 installed from the RPM. I want to build my own rpm for internally distributing on some servers.

The key feature I want to add to this build is another user without root access. I want a webmin account called "box-admin" that only has access to a few modules like firewall, net, time, etc. This way, certain level of users are not overwhelmed by all the functions available in webmin.

I have searched but could not find where the user information is stored in webmin, so I can add it to a distribution.  If it is easier, I can add a group/user to the linux box, but I really want the scaled down options for this user base.

Very cool and impressive application.

Thanks!
The files you need to modify are /etc/webmin/miniserv.users and /etc/webmin/webmin.acl .

In the first you will need to append a line like :
box-admin:XXXXX
where XXXXX is the unix-encrypted password.


In webmin.acl you should add the line :
box-admin: firewall net etc..

Make sure you run /etc/webmin/restart after changing those files.

 - Jamie

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
Scott White | 10 Apr 2008 22:58
Picon

Re: [webmin-devel] How do I add a new default user to a webmin rpm?



On Thu, Apr 10, 2008 at 3:38 PM, Jamie Cameron <jcameron <at> webmin.com> wrote:
On 10/Apr/2008 12:52 Scott White wrote ..
I am using webmin 1.410 installed from the RPM. I want to build my own rpm for internally distributing on some servers.

The key feature I want to add to this build is another user without root access. I want a webmin account called "box-admin" that only has access to a few modules like firewall, net, time, etc. This way, certain level of users are not overwhelmed by all the functions available in webmin.

I have searched but could not find where the user information is stored in webmin, so I can add it to a distribution.  If it is easier, I can add a group/user to the linux box, but I really want the scaled down options for this user base.

Very cool and impressive application.

Thanks!
The files you need to modify are /etc/webmin/miniserv.users and /etc/webmin/webmin.acl .

In the first you will need to append a line like :
box-admin:XXXXX
where XXXXX is the unix-encrypted password.


In webmin.acl you should add the line :
box-admin: firewall net etc..

Make sure you run /etc/webmin/restart after changing those files.

 - Jamie

 That makes sense, but I want to repackage this as an RPM. Would suggest patching those files after the install or should I try to modify setup.sh? It looks like it creates those files now.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
Jamie Cameron | 10 Apr 2008 23:07

Re: [webmin-devel] How do I add a new default user to a webmin rpm?

On 10/Apr/2008 13:58 Scott White wrote ..



On Thu, Apr 10, 2008 at 3:38 PM, Jamie Cameron <jcameron <at> webmin.com> wrote:
On 10/Apr/2008 12:52 Scott White wrote ..
I am using webmin 1.410 installed from the RPM. I want to build my own rpm for internally distributing on some servers.

The key feature I want to add to this build is another user without root access. I want a webmin account called "box-admin" that only has access to a few modules like firewall, net, time, etc. This way, certain level of users are not overwhelmed by all the functions available in webmin.

I have searched but could not find where the user information is stored in webmin, so I can add it to a distribution.  If it is easier, I can add a group/user to the linux box, but I really want the scaled down options for this user base.

Very cool and impressive application.

Thanks!
The files you need to modify are /etc/webmin/miniserv.users and /etc/webmin/webmin.acl .

In the first you will need to append a line like :
box-admin:XXXXX
where XXXXX is the unix-encrypted password.


In webmin.acl you should add the line :
box-admin: firewall net etc..

Make sure you run /etc/webmin/restart after changing those files.

 - Jamie

 That makes sense, but I want to repackage this as an RPM. Would suggest patching those files after the install or should I try to modify setup.sh? It looks like it creates those files now.
I'd suggest adding code to the %post section of the RPM to made these additions.

 - Jamie

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
Nizar TLILI | 11 Apr 2008 09:48
Picon

Re: [webmin-devel] How do I add a new default user to a webmin rpm?

On Thursday 10 April 2008 11:07:34 pm Jamie Cameron wrote:
>  On 10/Apr/2008 13:58 Scott White wrote ..
>
>
> On Thu, Apr 10, 2008 at 3:38 PM, Jamie Cameron <jcameron <at> webmin.com> wrote:
>  On 10/Apr/2008 12:52 Scott White wrote ..
>  I am using webmin 1.410 installed from the RPM. I want to build my own rpm
> for internally distributing on some servers.
>
> The key feature I want to add to this build is another user without root
> access. I want a webmin account called "box-admin" that only has access to
> a few modules like firewall, net, time, etc. This way, certain level of
> users are not overwhelmed by all the functions available in webmin.
>
> I have searched but could not find where the user information is stored in
> webmin, so I can add it to a distribution.  If it is easier, I can add a
> group/user to the linux box, but I really want the scaled down options for
> this user base.
>
> Very cool and impressive application.
> Thanks!
> The files you need to modify are /etc/webmin/miniserv.users and
> /etc/webmin/webmin.acl .
>
> In the first you will need to append a line like :
>  box-admin:XXXXX
> where XXXXX is the unix-encrypted password.
>
>  In webmin.acl you should add the line :
> box-admin: firewall net etc..
>
> Make sure you run /etc/webmin/restart after changing those files.
>
>  - Jamie
>
>  That makes sense, but I want to repackage this as an RPM. Would suggest
> patching those files after the install or should I try to modify setup.sh?
> It looks like it creates those files now.
>
> I'd suggest adding code to the %post section of the RPM to made these
> additions.
>
>  - Jamie

You could do it by a simple patch file that you call from the %post section of 
your rpm .spec file

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
Scott White | 11 Apr 2008 19:21
Picon

Re: [webmin-devel] How do I add a new default user to a webmin rpm?



On Thu, Apr 10, 2008 at 4:07 PM, Jamie Cameron <jcameron <at> webmin.com> wrote:
On 10/Apr/2008 13:58 Scott White wrote ..


On Thu, Apr 10, 2008 at 3:38 PM, Jamie Cameron <jcameron <at> webmin.com> wrote:
On 10/Apr/2008 12:52 Scott White wrote ..
I am using webmin 1.410 installed from the RPM. I want to build my own rpm for internally distributing on some servers.

The key feature I want to add to this build is another user without root access. I want a webmin account called "box-admin" that only has access to a few modules like firewall, net, time, etc. This way, certain level of users are not overwhelmed by all the functions available in webmin.

I have searched but could not find where the user information is stored in webmin, so I can add it to a distribution.  If it is easier, I can add a group/user to the linux box, but I really want the scaled down options for this user base.

Very cool and impressive application.

Thanks!
The files you need to modify are /etc/webmin/miniserv.users and /etc/webmin/webmin.acl .

In the first you will need to append a line like :
box-admin:XXXXX
where XXXXX is the unix-encrypted password.


In webmin.acl you should add the line :
box-admin: firewall net etc..

Make sure you run /etc/webmin/restart after changing those files.

 - Jamie

 That makes sense, but I want to repackage this as an RPM. Would suggest patching those files after the install or should I try to modify setup.sh? It looks like it creates those files now.
I'd suggest adding code to the %post section of the RPM to made these additions.

 - Jamie

I will try that out. I did notice that if you install webmin as part of the OS (i.e. include it you own distribution), the root password is blank. It looks like the setup.sh is looking for /etc/passwd which may not be setup during the initial install.

 
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
Joseph Laws | 11 Apr 2008 20:12

Re: [webmin-devel] How do I add a new default user to a webmin rpm?

I realize you want this all done in an rpm...but perhaps just clustering 
the install from RPM and then syncing that user over all the machines 
through the Cluster Users & Groups and/or Cluster Webmin Servers module 
would be a bit more in line with what you should be doing.

J. Laws

Scott White wrote:
>
>
> On Thu, Apr 10, 2008 at 4:07 PM, Jamie Cameron <jcameron <at> webmin.com 
> <mailto:jcameron <at> webmin.com>> wrote:
>
>     On 10/Apr/2008 13:58 Scott White wrote ..
>>
>>
>>     On Thu, Apr 10, 2008 at 3:38 PM, Jamie Cameron
>>     <jcameron <at> webmin.com
>>     <http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom>> wrote:
>>
>>         On 10/Apr/2008 12:52 Scott White wrote ..
>>>         I am using webmin 1.410 installed from the RPM. I want to
>>>         build my own rpm for internally distributing on some servers.
>>>
>>>         The key feature I want to add to this build is another user
>>>         without root access. I want a webmin account called
>>>         "box-admin" that only has access to a few modules like
>>>         firewall, net, time, etc. This way, certain level of users
>>>         are not overwhelmed by all the functions available in webmin.
>>>
>>>         I have searched but could not find where the user
>>>         information is stored in webmin, so I can add it to a
>>>         distribution.  If it is easier, I can add a group/user to
>>>         the linux box, but I really want the scaled down options for
>>>         this user base.
>>>
>>>         Very cool and impressive application.
>>
>>         Thanks!
>>         The files you need to modify are /etc/webmin/miniserv.users
>>         and /etc/webmin/webmin.acl .
>>
>>         In the first you will need to append a line like :
>>         box-admin:XXXXX
>>         where XXXXX is the unix-encrypted password.
>>
>>
>>         In webmin.acl you should add the line :
>>         box-admin: firewall net etc..
>>
>>         Make sure you run /etc/webmin/restart after changing those files.
>>
>>          - Jamie
>>
>>      That makes sense, but I want to repackage this as an RPM. Would
>>     suggest patching those files after the install or should I try to
>>     modify setup.sh? It looks like it creates those files now.
>     I'd suggest adding code to the %post section of the RPM to made
>     these additions.
>
>      - Jamie
>
>
> I will try that out. I did notice that if you install webmin as part 
> of the OS (i.e. include it you own distribution), the root password is 
> blank. It looks like the setup.sh is looking for /etc/passwd which may 
> not be setup during the initial install.
>
>  
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> -
> Forwarded by the Webmin development list at webmin-devel <at> webmin.com
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 7.5.519 / Virus Database: 269.22.12/1373 - Release Date: 4/11/2008 9:17 AM
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel

Scott White | 15 Apr 2008 01:01
Picon

Re: [webmin-devel] How do I add a new default user to a webmin rpm?

For completeness, here is what I did.
I created a new RPM called webmin-mystuff. This rpm requires the base webmin rpm.
On my machine I configure the system for users and access control to various modules.
Then I use the /etc/webmin/miniserv.users and /etc/webmin/webmin.acl as source for the new RPM.
I update my distribution media and kickstart files to include the new rpm and I am done.

My new RPM is not portable to other non-Redhat like distributions, but that is not an issue for me.

On Fri, Apr 11, 2008 at 1:12 PM, Joseph Laws <jlaws <at> hd-gaming.com> wrote:
I realize you want this all done in an rpm...but perhaps just clustering
the install from RPM and then syncing that user over all the machines
through the Cluster Users & Groups and/or Cluster Webmin Servers module
would be a bit more in line with what you should be doing.

J. Laws

Scott White wrote:
>
>
> On Thu, Apr 10, 2008 at 4:07 PM, Jamie Cameron <jcameron <at> webmin.com
> <mailto:jcameron <at> webmin.com>> wrote:
>
>     On 10/Apr/2008 13:58 Scott White wrote ..
>>
>>
>>     On Thu, Apr 10, 2008 at 3:38 PM, Jamie Cameron
>>     <jcameron <at> webmin.com
>>     <http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom>> wrote:
>>
>>         On 10/Apr/2008 12:52 Scott White wrote ..
>>>         I am using webmin 1.410 installed from the RPM. I want to
>>>         build my own rpm for internally distributing on some servers.
>>>
>>>         The key feature I want to add to this build is another user
>>>         without root access. I want a webmin account called
>>>         "box-admin" that only has access to a few modules like
>>>         firewall, net, time, etc. This way, certain level of users
>>>         are not overwhelmed by all the functions available in webmin.
>>>
>>>         I have searched but could not find where the user
>>>         information is stored in webmin, so I can add it to a
>>>         distribution.  If it is easier, I can add a group/user to
>>>         the linux box, but I really want the scaled down options for
>>>         this user base.
>>>
>>>         Very cool and impressive application.
>>
>>         Thanks!
>>         The files you need to modify are /etc/webmin/miniserv.users
>>         and /etc/webmin/webmin.acl .
>>
>>         In the first you will need to append a line like :
>>         box-admin:XXXXX
>>         where XXXXX is the unix-encrypted password.
>>
>>
>>         In webmin.acl you should add the line :
>>         box-admin: firewall net etc..
>>
>>         Make sure you run /etc/webmin/restart after changing those files.
>>
>>          - Jamie
>>
>>      That makes sense, but I want to repackage this as an RPM. Would
>>     suggest patching those files after the install or should I try to
>>     modify setup.sh? It looks like it creates those files now.
>     I'd suggest adding code to the %post section of the RPM to made
>     these additions.
>
>      - Jamie
>
>
> I will try that out. I did notice that if you install webmin as part
> of the OS (i.e. include it you own distribution), the root password is
> blank. It looks like the setup.sh is looking for /etc/passwd which may
> not be setup during the initial install.
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> -
> Forwarded by the Webmin development list at webmin-devel <at> webmin.com
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.12/1373 - Release Date: 4/11/2008 9:17 AM
>


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
John Gray | 17 Apr 2008 16:49
Favicon

[webmin-devel] Linking to external apps

Someone had written modules for linking to various external apps (like 
phpmyadmin).  If memory servers, his name is Vernon Spangler.  I think 
he lost his domain.  The domain was unregistered a while back, now its 
registered, but I can seems to find the modules on it.  It listed as for 
sale, and its registered to someone in China. If the modules are there 
any more, they should probably be removed from the module list.

Writing such a module couldn't be that hard, but I'd rather not recreate 
the wheel if I don't have too.

I'd like to have links to phpmyadmin and phppgadmin in virtualmin, and 
quite possibly link to squirrelmail or IMP from usermin (replacing the 
mail appin usermin).

Ideally I'd the users to not have to re-login.  But I can live with it.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-
Forwarded by the Webmin development list at webmin-devel <at> webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel


Gmane