Showing posts with label Webmin. Show all posts
Showing posts with label Webmin. Show all posts

How to run Webmin from inetd

0 comments
Running Webmin from inetd?

The steps you need to follow are:

Stop webmin with the command

# /etc/webmin/stop

Add the line

# inetd=1 to /etc/webmin/miniserv.conf

Remove the line

# session=1 from /etc/webmin/miniserv.conf

Edit /etc/services and add a line like :

# webmin 10000/tcp

Edit /etc/inetd.conf and add a line like :

webmin stream tcp nowait root /usr/libexec/webmin/miniserv.pl miniserv.pl /etc/webmin/miniserv.conf

If you have installed webmin somewhere else, you will have to change the /usr/libexec/webmin part of the path above.

Restart inetd to make the changes take effect.

You should now be able to access webmin on port 10000 as normal.

Using the Bootup and Shutdown module, make sure that inetd is configured to start at boot time, and that webmin is not.

How can I allow any Unix user to login to Webmin?

0 comments

In the Perl Modules module of Webmin, install

Authen::PAM from CPAN

In the PAM Authentication module, add a new PAM service called webmin that uses Unix authentication.

In the Webmin Users module, create a new user called something like unixer, with access to the modules that you want all your Unix users to have access to.

In each of the modules unixer has access to, change the module access control to give your users rights only to their own accounts. For example, in the Change Passwords module you should select Only this user for the Users whose passwords can be changed so that Unix users logging in can only change their own passwords.

Click on Configure Unix user authentication below the list of Webmin users and choose Allow any Unix user to login with permissions of user unixer.

Any Unix user should now be able to login to Webmin on your system.

Again, if your system does not use PAM the first two steps can be skipped, and Webmin will read /etc/passwd or /etc/shadow file directly to authenticate users.

Another alternative to doing all this is to install Usermin, which allows all Unix users to login and access only settings belonging to them, using a similar interface to Webmin.

In the Perl Modules module of Webmin, install

Authen::PAM from CPAN

In the PAM Authentication module, add a new PAM service called webmin that uses Unix authentication.

In the Webmin Users module, create a new user called something like unixer, with access to the modules that you want all your Unix users to have access to.

In each of the modules unixer has access to, change the module access control to give your users rights only to their own accounts. For example, in the Change Passwords module you should select Only this user for the Users whose passwords can be changed so that Unix users logging in can only change their own passwords.

Click on Configure Unix user authentication below the list of Webmin users and choose Allow any Unix user to login with permissions of user unixer.

Any Unix user should now be able to login to Webmin on your system.

Again, if your system does not use PAM the first two steps can be skipped, and Webmin will read /etc/passwd or /etc/shadow file directly to authenticate users.

Another alternative to doing all this is to install Usermin, which allows all Unix users to login and access only settings belonging to them, using a similar interface to Webmin.