From: John H. <j....@pl...> - 2004-02-11 15:25:56
|
Hello, As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a module to execute something on a remote server nothing gets logged by webmin on the remote server. Would it be possible to get the command logged? Access to the remote server is by fastrpc with a username/pwd supplied. I'm not totally sure how webmin communicates with the remote server so I'm not too sure what is/is not possible! :-) Thanks, John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: Joh...@pl... Fax: +44 (0)1752 233839 |
From: Jamie C. <jca...@we...> - 2004-02-11 22:16:43
|
On Thu, 2004-02-12 at 02:25, John Horne wrote: > Hello, > > As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a > module to execute something on a remote server nothing gets logged by > webmin on the remote server. Would it be possible to get the command > logged? Access to the remote server is by fastrpc with a username/pwd > supplied. I'm not totally sure how webmin communicates with the remote > server so I'm not too sure what is/is not possible! :-) You would have to use code like : remote_foreign_call($server, $module, "system_logged", $your_command); remote_foreign_call($server, $module, "webmin_log", "whatever"); Most modules do their logging on the 'master' side rather than the 'slave' side .. however, this would still work fine. - Jamie |
From: Andrew K. <ak...@co...> - 2004-02-11 22:46:47
|
This brought me to think about logging in "Usermin". Is there a way to to log Usermin activity like Webmin has? I was unable to find an option to do this. -Andrew Jamie Cameron wrote: >On Thu, 2004-02-12 at 02:25, John Horne wrote: > > >>Hello, >> >>As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a >>module to execute something on a remote server nothing gets logged by >>webmin on the remote server. Would it be possible to get the command >>logged? Access to the remote server is by fastrpc with a username/pwd >>supplied. I'm not totally sure how webmin communicates with the remote >>server so I'm not too sure what is/is not possible! :-) >> >> > >You would have to use code like : > >remote_foreign_call($server, $module, "system_logged", $your_command); >remote_foreign_call($server, $module, "webmin_log", "whatever"); > >Most modules do their logging on the 'master' side rather than the >'slave' side .. however, this would still work fine. > > - Jamie > > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >- >Forwarded by the Webmin development list at web...@we... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > |
From: Jamie C. <jca...@we...> - 2004-02-11 22:57:04
|
Currently, logging by Usermin is not supported .. and it would be tough to implement a central log like Webmin has, as most Usermin modules run with non-root privileges. - Jamie On Thu, 2004-02-12 at 09:44, Andrew Kornak wrote: > This brought me to think about logging in "Usermin". Is there a way to > to log Usermin activity like Webmin has? I was unable to find an option > to do this. > > -Andrew > > Jamie Cameron wrote: > > >On Thu, 2004-02-12 at 02:25, John Horne wrote: > > > > > >>Hello, > >> > >>As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a > >>module to execute something on a remote server nothing gets logged by > >>webmin on the remote server. Would it be possible to get the command > >>logged? Access to the remote server is by fastrpc with a username/pwd > >>supplied. I'm not totally sure how webmin communicates with the remote > >>server so I'm not too sure what is/is not possible! :-) > >> > >> > > > >You would have to use code like : > > > >remote_foreign_call($server, $module, "system_logged", $your_command); > >remote_foreign_call($server, $module, "webmin_log", "whatever"); > > > >Most modules do their logging on the 'master' side rather than the > >'slave' side .. however, this would still work fine. > > > > - Jamie > > > > > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >- > >Forwarded by the Webmin development list at web...@we... > >To remove yourself from this list, go to > >http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Andrew K. <ak...@co...> - 2004-02-11 23:42:44
|
Forgive for my ignorance, but, how would that effect Usermin activity? Usermin runs as root as does Webmin. Couldn't Usermin activity be logged in the same fashion? Why would a module's privileges matter if the master process has root privileges. Thanks. -Andrew Jamie Cameron wrote: >Currently, logging by Usermin is not supported .. and it would be tough >to implement a central log like Webmin has, as most Usermin modules run >with non-root privileges. > > - Jamie > >On Thu, 2004-02-12 at 09:44, Andrew Kornak wrote: > > >>This brought me to think about logging in "Usermin". Is there a way to >>to log Usermin activity like Webmin has? I was unable to find an option >>to do this. >> >>-Andrew >> >>Jamie Cameron wrote: >> >> >> >>>On Thu, 2004-02-12 at 02:25, John Horne wrote: >>> >>> >>> >>> >>>>Hello, >>>> >>>>As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a >>>>module to execute something on a remote server nothing gets logged by >>>>webmin on the remote server. Would it be possible to get the command >>>>logged? Access to the remote server is by fastrpc with a username/pwd >>>>supplied. I'm not totally sure how webmin communicates with the remote >>>>server so I'm not too sure what is/is not possible! :-) >>>> >>>> >>>> >>>> >>>You would have to use code like : >>> >>>remote_foreign_call($server, $module, "system_logged", $your_command); >>>remote_foreign_call($server, $module, "webmin_log", "whatever"); >>> >>>Most modules do their logging on the 'master' side rather than the >>>'slave' side .. however, this would still work fine. >>> >>>- Jamie >>> >>> >>> >>> >>>------------------------------------------------------- >>>SF.Net is sponsored by: Speed Start Your Linux Apps Now. >>>Build and deploy apps & Web services for Linux with >>>a free DVD software kit from IBM. Click Now! >>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >>>- >>>Forwarded by the Webmin development list at web...@we... >>>To remove yourself from this list, go to >>>http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> >>> >>> >>> >>> >>------------------------------------------------------- >>SF.Net is sponsored by: Speed Start Your Linux Apps Now. >>Build and deploy apps & Web services for Linux with >>a free DVD software kit from IBM. Click Now! >>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >>- >>Forwarded by the Webmin development list at web...@we... >>To remove yourself from this list, go to >>http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> >> > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >- >Forwarded by the Webmin development list at web...@we... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > |
From: Jamie C. <jca...@we...> - 2004-02-11 23:57:10
|
The main Usermin webserver process runs as root, and all CGI scripts are run as root initially, but most drop their privileges down to the level of the logged-in user before doing anything. So writing to global log files after some action is performed is not possible .. although there may be ways around this by pre-opening the log file before dropping root privileges. In my opinion, logging in Usermin isn't as important as in Webmin, as the amount of damage the user can be is less :-) - Jamie On Thu, 2004-02-12 at 10:40, Andrew Kornak wrote: > Forgive for my ignorance, but, how would that effect Usermin activity? > Usermin runs as root > as does Webmin. Couldn't Usermin activity be logged in the same fashion? > Why would a module's > privileges matter if the master process has root privileges. Thanks. > > -Andrew > > Jamie Cameron wrote: > > >Currently, logging by Usermin is not supported .. and it would be tough > >to implement a central log like Webmin has, as most Usermin modules run > >with non-root privileges. > > > > - Jamie > > > >On Thu, 2004-02-12 at 09:44, Andrew Kornak wrote: > > > > > >>This brought me to think about logging in "Usermin". Is there a way to > >>to log Usermin activity like Webmin has? I was unable to find an option > >>to do this. > >> > >>-Andrew > >> > >>Jamie Cameron wrote: > >> > >> > >> > >>>On Thu, 2004-02-12 at 02:25, John Horne wrote: > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a > >>>>module to execute something on a remote server nothing gets logged by > >>>>webmin on the remote server. Would it be possible to get the command > >>>>logged? Access to the remote server is by fastrpc with a username/pwd > >>>>supplied. I'm not totally sure how webmin communicates with the remote > >>>>server so I'm not too sure what is/is not possible! :-) > >>>> > >>>> > >>>> > >>>> > >>>You would have to use code like : > >>> > >>>remote_foreign_call($server, $module, "system_logged", $your_command); > >>>remote_foreign_call($server, $module, "webmin_log", "whatever"); > >>> > >>>Most modules do their logging on the 'master' side rather than the > >>>'slave' side .. however, this would still work fine. > >>> > >>>- Jamie > >>> > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >>>Build and deploy apps & Web services for Linux with > >>>a free DVD software kit from IBM. Click Now! > >>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >>>- > >>>Forwarded by the Webmin development list at web...@we... > >>>To remove yourself from this list, go to > >>>http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >>> > >>> > >>> > >>> > >>> > >>------------------------------------------------------- > >>SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >>Build and deploy apps & Web services for Linux with > >>a free DVD software kit from IBM. Click Now! > >>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >>- > >>Forwarded by the Webmin development list at web...@we... > >>To remove yourself from this list, go to > >>http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > >> > > > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > >- > >Forwarded by the Webmin development list at web...@we... > >To remove yourself from this list, go to > >http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Andrew K. <ak...@co...> - 2004-02-12 00:32:01
|
Thanks Jamie. The reason I was interested in usermin logging was that I was toying with the idea of using Usermin/Webmin as an application server. We have all the necessary components, Webmin, MySQL, etc. A thought. -Andrew Jamie Cameron wrote: >The main Usermin webserver process runs as root, and all CGI scripts are >run as root initially, but most drop their privileges down to the level >of the logged-in user before doing anything. So writing to global log >files after some action is performed is not possible .. although there >may be ways around this by pre-opening the log file before dropping root >privileges. > >In my opinion, logging in Usermin isn't as important as in Webmin, as >the amount of damage the user can be is less :-) > > - Jamie > >On Thu, 2004-02-12 at 10:40, Andrew Kornak wrote: > > >>Forgive for my ignorance, but, how would that effect Usermin activity? >>Usermin runs as root >>as does Webmin. Couldn't Usermin activity be logged in the same fashion? >>Why would a module's >>privileges matter if the master process has root privileges. Thanks. >> >>-Andrew >> >>Jamie Cameron wrote: >> >> >> >>>Currently, logging by Usermin is not supported .. and it would be tough >>>to implement a central log like Webmin has, as most Usermin modules run >>>with non-root privileges. >>> >>>- Jamie >>> >>>On Thu, 2004-02-12 at 09:44, Andrew Kornak wrote: >>> >>> >>> >>> >>>>This brought me to think about logging in "Usermin". Is there a way to >>>>to log Usermin activity like Webmin has? I was unable to find an option >>>>to do this. >>>> >>>>-Andrew >>>> >>>>Jamie Cameron wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 2004-02-12 at 02:25, John Horne wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a >>>>>>module to execute something on a remote server nothing gets logged by >>>>>>webmin on the remote server. Would it be possible to get the command >>>>>>logged? Access to the remote server is by fastrpc with a username/pwd >>>>>>supplied. I'm not totally sure how webmin communicates with the remote >>>>>>server so I'm not too sure what is/is not possible! :-) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>You would have to use code like : >>>>> >>>>>remote_foreign_call($server, $module, "system_logged", $your_command); >>>>>remote_foreign_call($server, $module, "webmin_log", "whatever"); >>>>> >>>>>Most modules do their logging on the 'master' side rather than the >>>>>'slave' side .. however, this would still work fine. >>>>> >>>>>- Jamie >>>>> >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>SF.Net is sponsored by: Speed Start Your Linux Apps Now. >>>>>Build and deploy apps & Web services for Linux with >>>>>a free DVD software kit from IBM. Click Now! >>>>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >>>>>- >>>>>Forwarded by the Webmin development list at web...@we... >>>>>To remove yourself from this list, go to >>>>>http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>------------------------------------------------------- >>>>SF.Net is sponsored by: Speed Start Your Linux Apps Now. >>>>Build and deploy apps & Web services for Linux with >>>>a free DVD software kit from IBM. Click Now! >>>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >>>>- >>>>Forwarded by the Webmin development list at web...@we... >>>>To remove yourself from this list, go to >>>>http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>>> >>>> >>>> >>>> >>> >>>------------------------------------------------------- >>>SF.Net is sponsored by: Speed Start Your Linux Apps Now. >>>Build and deploy apps & Web services for Linux with >>>a free DVD software kit from IBM. Click Now! >>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >>>- >>>Forwarded by the Webmin development list at web...@we... >>>To remove yourself from this list, go to >>>http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> >>> >>> >>> >>> >>------------------------------------------------------- >>SF.Net is sponsored by: Speed Start Your Linux Apps Now. >>Build and deploy apps & Web services for Linux with >>a free DVD software kit from IBM. Click Now! >>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >>- >>Forwarded by the Webmin development list at web...@we... >>To remove yourself from this list, go to >>http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> >> > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >- >Forwarded by the Webmin development list at web...@we... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > |
From: John H. <j....@pl...> - 2004-02-12 10:26:24
|
On Wed, 2004-02-11 at 22:15, Jamie Cameron wrote: > On Thu, 2004-02-12 at 02:25, John Horne wrote: > > Hello, > > > > As far as I can tell, using webmin 1.130, if I use 'remote_eval' in a > > module to execute something on a remote server nothing gets logged by > > webmin on the remote server. Would it be possible to get the command > > logged? Access to the remote server is by fastrpc with a username/pwd > > supplied. I'm not totally sure how webmin communicates with the remote > > server so I'm not too sure what is/is not possible! :-) > > You would have to use code like : > > remote_foreign_call($server, $module, "system_logged", $your_command); > remote_foreign_call($server, $module, "webmin_log", "whatever"); > > Most modules do their logging on the 'master' side rather than the > 'slave' side .. however, this would still work fine. > Thanks, I'll try this. It's for the b9ddns third-party module. If people are going to do things on a slave DNS name server but from a master server (that is, the master name server as well as the webmin server that they are logged on) - such as creating/deleting zones, reload's etc - then I'd like it logged on the slave. I can see zones being created and deleted on the master server webmin log but nothing is said about whether the zone was created/deleted on the slave as well. In fact I think the master server should log that as well as the slave logging the fact that it is creating/deleting a zone. John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: Joh...@pl... Fax: +44 (0)1752 233839 |