Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
2
votes
1
answers
2147
views
How to use Jailkit Jail Manager in Virtualmin to restrict users
How to use Jailkit Jail Manager in Virtualmin (Webmin 1.892) to restrict users in their homes including virtual website and all services running under user? I am setting up small website hosting service and I must disable access to everything except user's home. I dont want to use FTP or FTPS! User'...
How to use Jailkit Jail Manager in Virtualmin (Webmin 1.892) to restrict users in their homes including virtual website and all services running under user?
I am setting up small website hosting service and I must disable access to everything except user's home.
I dont want to use FTP or FTPS! User's will have full SSH access to their system and they will be able to run for example NodeJS scripts, Teamspeak, etc...
Is it possible? If yes, is it possible in Virtualmin or it needs more and deeper setup.
EDIT: I am using Debian 9
Baterka
(313 rep)
Sep 27, 2018, 09:13 PM
• Last activity: Jul 31, 2025, 12:04 PM
0
votes
2
answers
853
views
Problem with missing yum package CentOS (Virtualmin)
I am struggling with installation of `rh-php71` package using yum on CentOS 6.10 and wondering how I could debug what's the root cause. * I have followed instructions on [scl][1]: ```lang-sh # 1. Install a package with repository for your system: # On CentOS, install package centos-release-scl avail...
I am struggling with installation of
rh-php71
package using yum on CentOS 6.10 and wondering how I could debug what's the root cause.
* I have followed instructions on scl :
-sh
# 1. Install a package with repository for your system:
# On CentOS, install package centos-release-scl available in CentOS repository:
$ sudo yum install centos-release-scl
# On RHEL, enable RHSCL repository for you system:
$ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
# 2. Install the collection:
$ sudo yum install rh-php71
* However 2nd step gives me output:
No package rh-php71 available.
Error: Nothing to do
* What I've tried is:
-sh
yum clean all && yum makecache
But package is not found.
* I have already rh-php70
installed from scl:
-shellsession
$ yum info rh-php70.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirrors.ovh.net
* centos-sclo-rh: centos.mirrors.ovh.net
* centos-sclo-sclo: centos.mirror.ate.info
* epel: mirror.freethought-internet.co.uk
* extras: centos.mirrors.ovh.net
* remi-php71: remi.mirror.ate.info
* remi-safe: remi.mirror.ate.info
* updates: mirrors.ircam.fr
Installed Packages
Name : rh-php70
[...]
From repo : centos-sclo-rh
[...]
Athlan
(141 rep)
Jul 16, 2019, 07:09 PM
• Last activity: Jan 7, 2025, 01:34 PM
0
votes
1
answers
138
views
BIND zones added manually to config file not appearing in Webmin
I‘m just in the process of rebuilding a system which includes BIND and Webmin. Zone files for BIND are on an external disk, which worked fine on the previous setup. After installing the server from scratch, I went into webmin and edited `/etc/bind/named.conf.default-zones`, adding the entries for th...
I‘m just in the process of rebuilding a system which includes BIND and Webmin.
Zone files for BIND are on an external disk, which worked fine on the previous setup.
After installing the server from scratch, I went into webmin and edited
/etc/bind/named.conf.default-zones
, adding the entries for the zone files as they were on the old setup, then restarted BIND.
If I query one of these zones (using nslookup and first setting server 127.0.0.1
), I can resolve names in these zones.
However, Webmin tells me there are no DNS zones defined for this name server. Restarting BIND through Webmin, reloading Webmin modules and even restarting the server does not work.
It seems to be just Webmin that is having issues, as querying the zone works. How do I get these zone files to show up in Webmin?
user149408
(1515 rep)
Nov 14, 2024, 08:31 PM
• Last activity: Nov 15, 2024, 08:18 PM
1
votes
1
answers
1080
views
Install phpMyAdmin on hostname in Webmin/Virtualmin for all accounts (on hostname) automatically like cPanel does?
The way Webmin seems to install phpMyAdmin is to install it inside the public_html directory. e.g. https://mydomain.com/phpMyAdmin I don't want to debate the vulnerability, instead I want phpMyAdmin to function on Webmin like it does in cPanel. One recommendation was to create a subdomain and instal...
The way Webmin seems to install phpMyAdmin is to install it inside the public_html directory. e.g.
https://mydomain.com/phpMyAdmin
I don't want to debate the vulnerability, instead I want phpMyAdmin to function on Webmin like it does in cPanel.
One recommendation was to create a subdomain and install it there, but this is an extra step every time.
cPanel doesn't have phpMyAdmin even accessible by the domain. Instead, it is located like this:
https://server1.myserver.com:2083/cpsess9292847592/3rdparty/phpMyAdmin/index.php
And it's only accessible through the web control panel. It seems to add a session ID to the URL too so it's only even valid for the current login, and then the URL doesn't exist if the user logs out or the session isn't valid.
Even better, this is also accessible by admins through WHM in one central place.
How can I get phpMyAdmin to install automatically for every use like it does in cPanel, and to install in a non-public directory that uses the server hostname like cPanel does?
user7211
(43 rep)
Jun 15, 2022, 07:31 AM
• Last activity: May 18, 2023, 02:22 AM
2
votes
2
answers
949
views
Missing packages and repos setting up webmin on VPS
I'm just trying to set up webmin as the first thing on a new VPS, I'm familiar with Ubuntu (it's my main work machine). This is what's on the VPS Description: Debian GNU/Linux 8.5 (jessie) Release: 8.5 Codename: jessie So I follow the instructions to download and install virtualmin: wget http://soft...
I'm just trying to set up webmin as the first thing on a new VPS, I'm familiar with Ubuntu (it's my main work machine).
This is what's on the VPS
Description: Debian GNU/Linux 8.5 (jessie)
Release: 8.5
Codename: jessie
So I follow the instructions to download and install virtualmin:
wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo /bin/sh install.sh
It starts well but eventually fails:
[INFO] Started installation log in /root/virtualmin-install.log
▣□□ Phase 1 of 3: Setup
Installing extra dependencies for Debian 8 [ ✔ ]
Downloading apt.gpg [ ✔ ]
Adding GPG key for PHP7 packages [ ✔ ]
Downloading RPM-GPG-KEY-virtualmin-6 [ ✔ ]
Downloading RPM-GPG-KEY-webmin [ ✔ ]
Installing Virtualmin 6 key [ ✔ ]
Installing Webmin key [ ✔ ]
Updating apt metadata [ ✔ ]
Downloading repository metadata [ ✔ ]
Disabling cdrom: repositories [ ✔ ]
Cleaning out old metadata [ ✔ ]
▣▣□ Phase 2 of 3: Installation
Installing Webmin [ERROR] Failed with error: 100
[ ✘ ]
[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
webmin : Depends: libauthen-pam-perl but it is not installable
Depends: libio-pty-perl but it is not installable
Depends: apt-show-versions but it is not installable
E: Unable to correct problems, you have held broken packages.
######
Here's what sources.list looks like
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
#deb http://ftp.debian.org/debian/ jessie-updates main contrib
#deb-src http://ftp.debian.org/debian/ jessie-updates main contrib
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main
So then I try to install a missing package (and get the same rsponse for every missing package):
sudo apt install libauthen-pam-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libauthen-pam-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libauthen-pam-perl' has no installation candidate
So, I try to add the repo that contains
apt-show-versions
(one of the missing packages):
sudo add-apt-repository ...
But that command (add-apt-repository) doesn't exist. So I try to load software-properties-common
and that package cannot be located either.
How do I get out of this insanity and just get something loaded?
This is what I get for sudo apt update
:
Hit http://software.virtualmin.com virtualmin-jessie InRelease
Hit http://software.virtualmin.com virtualmin-universal InRelease
Hit http://packages.sury.org jessie InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://software.virtualmin.com virtualmin-jessie/main amd64 Packages
Hit http://packages.sury.org jessie/main amd64 Packages
Get:1 http://packages.sury.org jessie/main Translation-en_GB [169 B]
Get:2 http://packages.sury.org jessie/main Translation-en [169 B]
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Get:3 http://packages.sury.org jessie/main Translation-en_GB [169 B]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Get:4 http://packages.sury.org jessie/main Translation-en [169 B]
Hit http://software.virtualmin.com virtualmin-universal/main amd64 Packages
Get:5 http://packages.sury.org jessie/main Translation-en_GB [169 B]
Get:6 http://packages.sury.org jessie/main Translation-en [169 B]
Get:7 http://packages.sury.org jessie/main Translation-en_GB [169 B]
Get:8 http://packages.sury.org jessie/main Translation-en [169 B]
Get:9 http://packages.sury.org jessie/main Translation-en_GB [169 B]
Ign http://packages.sury.org jessie/main Translation-en_GB
Get:10 http://packages.sury.org jessie/main Translation-en [169 B]
Ign http://packages.sury.org jessie/main Translation-en
Ign http://software.virtualmin.com virtualmin-jessie/main Translation-en_GB
Ign http://software.virtualmin.com virtualmin-jessie/main Translation-en
Ign http://software.virtualmin.com virtualmin-universal/main Translation-en_GB
Ign http://software.virtualmin.com virtualmin-universal/main Translation-en
Adaddinsane
(133 rep)
Dec 29, 2018, 10:27 AM
• Last activity: Feb 17, 2023, 10:10 AM
0
votes
1
answers
835
views
WEBMIN LDAP authentication: passwd returns "Authentication token manipulation error"
Update:jan 25 2023 I believe I have sssd and nslcd working properly I also adjusted the pam modules in webmin. I also added db to nsswitch.conf so I checks there first. As of right now I can use things like ldapsearch -x -D cn=bindadmin,ou=People,dc=xxx,dc=com -W to query my db full of user succesfu...
Update:jan 25 2023
I believe I have sssd and nslcd working properly I also adjusted the pam modules in webmin. I also added db to nsswitch.conf so I checks there first. As of right now I can use things like ldapsearch -x -D cn=bindadmin,ou=People,dc=xxx,dc=com -W to query my db full of user succesfully I can also passwd $USER succesfully and log in with the new password using su -l $USER the only remaining problem I'm having is allowing the user to log into webmin I was hoping since the client is working and passwd changing works it would allow me to log in but when I attempt to change the converted webmin users acl for webmin log in I get the following error in /var/webmin/miniserv.error and this seems to be the only log error msg I get which is preventing my webmin users from logging in. Any thoughts?
Argument "" isn't numeric in numeric ne (!=) at /usr/libexec/webmin/acl/save_unix.cgi line 80.
[25/Jan/2023:11:01:59 -0500] Reloading configuration
I'm trying to setup ldap authentication for unix users to log in and I'm getting the token error. I have ldap users and groups working and I've converted all the unix users to webmin users but I cant get the users to log in or change password with passwd. I configured and enabled sssd.conf but I believe the issue may have to do with PAM files which I have limited experience with any help would be appreciated I'll add a few of the PAM configs along with the
sssd.conf
below. Let me know if you need anything else to help trouble shoot this thank you.
I also cant use anything like ldapmodify or ldapsearch which is because of a misconfigured ldap-client not reaching the server I presume? When I configure ldap-client on webmin with the nslcd.conf file and I use the validate button it returns the following but it doesn't give me the option to run/start the client as it had prior now it only gives me the validate configuration option and both start ldap-client alongside could this be why its not connecting properly?
Error msg when I try ldap search:
SASL/GSS-SPNEGO authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (SPNEGO cannot find mechanisms to negotiate)
Finding LDAP base for users ..
.. found base dc=xxxx,dc=com.
Connecting to LDAP server ..
.. connected to ldap-primary.ue1.-prod.com
Searching for users ..
.. found 507 users.
Checking Unix users service ..
.. service is setup to query LDAP.
Looking for Unix user bjones ..
.. user found successfully.
Your system has been successfully configured as an LDAP client!
Expectations:
- LDAP users and groups functionality working [complete]
- converted unix webmin users log in functionality working [not working]
The following commands works
$ id tuser
uid=6469(tuser) gid=6250(gwtest) groups=6250(gwtest),9003(git),9001(softeng)
$ getent passwd tuser
tuser:*:6469:6250:test user:/home/tuser:/bin/bash
log msg when I try passwd tuser
:
passwd: pam_unix(passwd:chauthtok): user "tuser" does not exist in /etc/passwd
passwd: pam_sss(passwd:chauthtok): Authentication failed for user tuser: 4 (System error)
log msg when converted webmin users attempts to log in:
pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty=10000 ruser= rhost=xxx user=xxx
webmin: Invalid login as xxxx from xxxx
passwdauth:
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth [default=1 ignore=ignore success=ok] pam_succeed_if.so uid >= 1000 quiet
auth [default=1 ignore=ignore success=ok] pam_localuser.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 1000 quiet_success
auth sufficient pam_sss.so forward_pass
auth required pam_deny.so
account required pam_unix.so broken_shadow
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid = 1000 quiet
auth [default=1 ignore=ignore success=ok] pam_localuser.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 1000 quiet_success
auth sufficient pam_sss.so forward_pass
auth required pam_deny.so
account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 1000 quiet
account [default=bad success=ok user_unknown=ignore] pam_sss.so
account required pam_permit.so
password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password sufficient pam_sss.so use_authtok
password required pam_deny.so
session optional pam_keyinit.so revoke
session required pam_limits.so
-session optional pam_systemd.so
session optional pam_mkhomedir.so umask=0077
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
session optional pam_sss.so
sssd.conf
[sssd]
config_file_version = 2
services = nss, pam, ssh
reconnection_retries = 3
domains = xxxx
[nss]
filter_groups = root
filter_users = root,named,nscd
[
[domain/xxx]
access_provider = ldap
auth_provider = ldap
cache_credentials = true
chpass_provider = none
debug_level = 3
entry_cache_timeout = 300
enum_cache_timeout = 300
enumerate = true
id_provider = ldap
ldap_access_order = expire
ldap_account_expire_policy = shadow
ldap_default_authtok_type = password
ldap_default_authtok = xxxx
ldap_default_bind_dn = cn=bindadmin-sssd,ou=People,dc=xxxx,dc=com
ldap_enumeration_refresh_timeout = 300
ldap_group_member = memberUid
ldap_group_name = cn
ldap_group_object_class = posixGroup
ldap_group_search_base = ou=Groups,dc=xxxx,dc=com
ldap_id_use_start_tls = false
ldap_network_timeout = 3
ldap_pwd_policy = shadow
ldap_schema = rfc2307
ldap_search_base = dc=xxx,dc=com
ldap_tls_cacertdir = /etc/openldap/cacerts
ldap_tls_reqcert = never
ldap_uri = ldaps://ldap-01.ue1-prod.com
ldap_user_name = uid
ldap_user_object_class = posixAccount
ldap_user_search_base = ou=People,dc=xxxx,dc=com
ldap_user_shadow_expire = shadowExpire
shell_fallback = /bin/bash
raultechxd
(9 rep)
Jan 13, 2023, 07:38 PM
• Last activity: Feb 9, 2023, 11:19 AM
6
votes
3
answers
19923
views
Which ports should I open for apt-get to work?
I installed Webmin, and then set up the firewall like this: INPUT SSH port ALLOWED Webmin port ALLOWED HTTP port (80) ALLOWED DROP EVERYTHING ELSE FORWARDING no rules OUTPUT no rules If I remove `DROP EVERYTHING ELSE` from INPUT, everything works. However, when that rule is added, apt-get doesn't wo...
I installed Webmin, and then set up the firewall like this:
INPUT SSH port ALLOWED Webmin port ALLOWED HTTP port (80) ALLOWED DROP EVERYTHING ELSE FORWARDING no rules OUTPUT no rulesIf I remove
DROP EVERYTHING ELSE
from INPUT, everything works.
However, when that rule is added, apt-get doesn't work, and I can't ping
or traceroute
anything.
Even with DROP EVERYTHING ELSE
enabled, Webmin, HTTP and SSH still work.
Which ports should I unblock to get apt-get working and allowed connecting to other domains from within the server?
Thanks
cantsay
(184 rep)
Jun 22, 2015, 11:59 PM
• Last activity: Oct 1, 2022, 08:27 AM
0
votes
1
answers
261
views
enable webmin scheduled package updates in config file
I'm deploying webmin across many servers using Terraform & cloud-init. I want to enable "Scheduled Upgrades" in the "Software Package Updates" module during setup by using a config file template. I can successfully configure the action and reporting email by including the following in /etc/webmin/pa...
I'm deploying webmin across many servers using Terraform & cloud-init. I want to enable "Scheduled Upgrades" in the "Software Package Updates" module during setup by using a config file template. I can successfully configure the action and reporting email by including the following in /etc/webmin/package-updates/config :
sched_email=sys.admin@...
sched_action=2
However, there seems to be no entry for the schedule interval selection and enabling it. What other config file (if any) is this info stored in?
I've also tried using the webmin CLI but couldn't figure out the correct option name:
# webmin set-config -m package-updates -o schedule -value 1
# Error: Option 'schedule' is unknown in module package-updates
Outlyer
(1 rep)
Jul 15, 2022, 04:52 PM
• Last activity: Jul 15, 2022, 10:34 PM
0
votes
1
answers
829
views
Host PC fails to access Webmin which is installed on CentOS in VirtualBox
Webmin can be accessed over SSH after forwarding the port. Now I am trying to access Webmin's control panel on my computer outside virtualbox but on the same computer, but it doesn't load. I tried using the same port forwarding settings as is working fine for SSH, for both port 80 and port 10000, bu...
Webmin can be accessed over SSH after forwarding the port.
Now I am trying to access Webmin's control panel on my computer outside virtualbox but on the same computer, but it doesn't load.
I tried using the same port forwarding settings as is working fine for SSH, for both port 80 and port 10000, but it still doesn't load. The browser error says,
This site can’t be reached
The connection was reset.
Here's my network settings for port forwarding in virtualbox:
Steps to reproduce:
1. Install fresh CentOS 7 x64 (latest)
2. Install Webmin
3.
This is what I want to see (pulled screenshot from the internet):
I also tried accessing from 192.168.x.x (my PC's IP), but I get connection refused:
I tried forwarding port 10000 to my local pc's IP port 10000 too, but still doesn't work:
I can't use bridged because port forwarding is greyed out.
I did try setting up a bridged connection, but then even SSH wouldn't connect, as well as either my host PC's IP (

yum update -y
4. Add Port Forwarding rule for 2222 to 22 to make SSH work
5. No iptables are installed. Just vanilla CentOS 7 x64 latest with Webmin latest freshly installed.
6. Open browser on computer (the same computer running VirtualBox & SSH but outside VirtualBox), and go to http://127.0.0.1:10000
It fails to connect.





http://192.168.x.x:10000
) or (http://127.0.0.1:10000
)
To troubleshoot I ran nmap in SSH:
# nmap 192.168.x.x -p 10000 -sU -sT -Pn --reason
Starting Nmap 6.40 ( http://nmap.org ) at 2022-06-14 21:33 EDT
Nmap scan report for DESKTOP-CHTUIRP (192.168.x.x)
Host is up, received user-set (0.0013s latency).
PORT STATE SERVICE REASON
10000/tcp filtered snet-sensor-mgmt no-response
10000/udp filtered ndmp port-unreach from 10.x.x.x
Nmap done: 1 IP address (1 host up) scanned in 0.47 seconds
Then I tried from localhost, but localhost (127.0.0.1) seems to be up.
# nmap 127.0.0.1 -p 10000 -sU -sT -Pn --reason
Starting Nmap 6.40 ( http://nmap.org ) at 2022-06-14 21:35 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up, received user-set (0.021s latency).
PORT STATE SERVICE REASON
10000/tcp open snet-sensor-mgmt syn-ack
10000/udp open ndmp udp-response
Nmap done: 1 IP address (1 host up) scanned in 0.98 seconds
also seems to be up from the guest IP (10.x.x.x)
# nmap 10.x.x.x -p 10000 -sU -sT -Pn --reason
Starting Nmap 6.40 ( http://nmap.org ) at 2022-06-14 21:41 EDT
Nmap scan report for 10.x.x.x
Host is up, received user-set (0.00021s latency).
PORT STATE SERVICE REASON
10000/tcp open snet-sensor-mgmt syn-ack
10000/udp open ndmp udp-response
Nmap done: 1 IP address (1 host up) scanned in 0.79 seconds
How to connect and log into WebMin that is installed in VirtualBox, in a browser on the host PC?
user7211
(43 rep)
Jun 15, 2022, 01:04 AM
• Last activity: Jun 15, 2022, 03:21 AM
1
votes
1
answers
1784
views
Can't access Webmin from browser after installing
Fresh Webmin install on Ubuntu 20.04 on Amazon Lightsail * I added the line to `iptables` as per their instructions: ``` sudo iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT ``` * I have added port `10000/tcp` to `ufw` also. * When I go to the browser https://myip:10000 the browser stays loa...
Fresh Webmin install on Ubuntu 20.04 on Amazon Lightsail
* I added the line to
iptables
as per their instructions:
sudo iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
* I have added port 10000/tcp
to ufw
also.
* When I go to the browser https://myip:10000 the browser stays loading for a while then says:
cant open the page because the server where this page is located isn't responding
What am I missing?
**Edit:**
When I run sudo service webmin status
I get this:
● webmin.service - LSB: web-based administration interface for Unix systems
Loaded: loaded (/etc/init.d/webmin; generated)
Active: active (exited) since Thu 2021-02-04 00:52:06 UTC; 55min ago
Docs: man:systemd-sysv-generator(8)
Feb 04 00:52:05 ip-172-26-4-221 systemd: Starting LSB: web-based administration interface for Unix systems...
Feb 04 00:52:05 ip-172-26-4-221 perl: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
Feb 04 00:52:06 ip-172-26-4-221 webmin: Webmin starting
Feb 04 00:52:06 ip-172-26-4-221 systemd: Started LSB: web-based administration interface for Unix systems.
lines 1-9/9 (END)
pyproper
(21 rep)
Feb 4, 2021, 01:36 AM
• Last activity: Jun 13, 2022, 05:48 AM
3
votes
3
answers
2867
views
how to install a webmin module by command line (bash)?
I want to install a module in webmin by command line (bash). How do you do this? Example: wget https://download.webmin.com/download/modules/text-editor.wbm.gz inside this .gz: text-editor.wbm sudo tar -xf text-editor.wbm.gz [![enter image description here][1]][1] The module (in this case text-editor...
I want to install a module in webmin by command line (bash). How do you do this?
Example:
wget https://download.webmin.com/download/modules/text-editor.wbm.gz
inside this .gz: text-editor.wbm
sudo tar -xf text-editor.wbm.gz
The module (in this case text-editor) when installed via GUI:
It sends the files to several places. Example:
To **/usr/share/webmin/text-editor**
To : **/etc/webmin/text-editor**
To: **/var/webmin/modules/text-editor** (empty):
**Important:**
Webmin installation methods used in my test:
Method 1:
sudo sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list'
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
sudo apt -y install webmin
Method 2 :
wget https://prdownloads.sourceforge.net/webadmin/webmin_1.910_all.deb
sudo dpkg --install webmin_1.910_all.deb
I asked the author (Jamie Cameron ) no response to the date, because he is the author of webmin and the author of the module that I try to install
Text Editor 1.4
Description Provides a simple interface for editing text files, with a history of recently-edited files.
Download text-editor.wbm.gz
Author Jamie Cameron
Last updated 2007-04-18 11:27:19
**Update:**
I have managed to make a script that installs the text-editor module. It is not very "elegant", but it works:





sudo chmod +x text-editor.sh && sudo ./text-editor.sh
#!/bin/bash
fshare=/usr/share/webmin/text-editor
fetc=/etc/webmin/text-editor
fvar=/var/webmin/modules/text-editor
if [ ! -d $fshare ]; then mkdir -p $fshare; fi
if [ ! -d $fetc ]; then mkdir -p $fetc; fi
if [ ! -d $fvar ]; then mkdir -p $fvar; fi
touch $fetc/files
wget -c https://download.webmin.com/download/modules/text-editor.wbm.gz
tar -xf text-editor.wbm.gz
cp -f -R text-editor/* $fshare
cp text-editor/config $fetc
sed -i '$ s/$/ text-editor/' /etc/webmin/webmin.acl
sh -c 'echo "text-editor=1" >> /etc/webmin/installed.cache'
/etc/init.d/webmin restart
However, there should be a better method to install any webmin module by command line
acgbox
(1010 rep)
Jun 5, 2019, 01:45 PM
• Last activity: Feb 26, 2022, 02:20 PM
0
votes
2
answers
234
views
Is there any web panel available out there that can start and stop a custom script/command I use to start/stop/update processes?
I've read some other similar posts but not found exactly what I'm looking for, Webmin is a good start but can it handle actual scripts or just stop processes? I would like something that can just run a command or script. I'm fine trying to attempt to develop a module for a panel that has that capabi...
I've read some other similar posts but not found exactly what I'm looking for, Webmin is a good start but can it handle actual scripts or just stop processes? I would like something that can just run a command or script.
I'm fine trying to attempt to develop a module for a panel that has that capability to make it work with what I'm looking for but if there is something already made then I'd rather do that instead.
Another option would be to make something with a language such as python to connect to the server and have an interface backed with python to remotely execute scripts/commands.
Any and all ideas on how I could go about this is appreciated, the goal is to have an interface that I can have some users click a button or two to manage some processes so they don't need to log in into the server directly via ssh and potentially mess up stuff.
Brendan
(1 rep)
Dec 14, 2017, 07:12 PM
• Last activity: Feb 12, 2022, 12:53 AM
1
votes
1
answers
404
views
Really basic Samba set-up not working
Background: I had a Debian server running a Samba share, and it played nicely with everyone: Debian, Ubuntu, Mint, Windows 7, Windows 10, Android 8 through whatever is current, even XP (for testing purposes). One of the services (Plex) on that server was problematic, so I set up another Debian serve...
Background: I had a Debian server running a Samba share, and it played nicely with everyone: Debian, Ubuntu, Mint, Windows 7, Windows 10, Android 8 through whatever is current, even XP (for testing purposes).
One of the services (Plex) on that server was problematic, so I set up another Debian server with the same storage devices, and set up the services I want. So far, all of the services work, except for Samba.
I figured I mucked up the config some how, so I copied line by line the config file from the old server to the new server, and this had no change.
I know it's a problem on the server, since it's the same for all the clients (Linux, Windows, Android, etc)
Win10 and Mint are both giving me the same generic error:
Permission Denied
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Samba has these nifty logs - one for each client, but, when I try to read those logs, they're blank and all read as 0kb.
It seems like a simple thing that should be working... What the heck do I do now?
Any advice is appreciated; thanks in advance!
(BTW in case it matters, I tried the first time using Webmin, then just the config files in /etc when Webmin didn't work)
Output from grep -Ev '^\s*[#;]|^$' /etc/samba/smb.conf
as requested in the comments (I changed the username to my given name and I'm working with a test share that will be deleted once I have this issue corrected)
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
unix extensions = no
[test]
comment = test
writeable = yes
path = /home/tony/test
valid users = tony
ps -ef | grep -E 'smbd|nmbd|winbind|sssd'
root 42538 1 0 14:41 ? 00:00:00 /usr/sbin/smbd --foreground --no-process-group
root 42540 42538 0 14:41 ? 00:00:00 /usr/sbin/smbd --foreground --no-process-group
root 42541 42538 0 14:41 ? 00:00:00 /usr/sbin/smbd --foreground --no-process-group
root 42549 42538 0 14:41 ? 00:00:00 /usr/sbin/smbd --foreground --no-process-group
root 42551 1 0 14:41 ? 00:00:00 /usr/sbin/nmbd --foreground --no-process-group
root 90058 35763 0 16:18 pts/1 00:00:00 grep -E smbd|nmbd|winbind|sssd
Tony NozeDive Scardina
(13 rep)
Sep 16, 2021, 01:58 PM
• Last activity: Sep 18, 2021, 06:18 PM
0
votes
1
answers
299
views
Virtualmin wrong msg about SSL certificates expired
I've a dedicated server on which I use Webmin/Virtualmin. SSL is done through Let's Encrypt and renewal via a CRON job. When I open VirtualMin, I've always a message saying *Some virtual servers' SSL certificates have expired* and when I look at the detail I see "*Expiry date= Feb 3 18:34:14 2021 GM...
I've a dedicated server on which I use Webmin/Virtualmin. SSL is done through Let's Encrypt and renewal via a CRON job.
When I open VirtualMin, I've always a message saying
*Some virtual servers' SSL certificates have expired*
and when I look at the detail I see "*Expiry date= Feb 3 18:34:14 2021 GMT*" which is wrong. Renewal has been done correctly, site is running in https and Firefox tell me the certificate will expire on 10 of June 2021 (which is the correct information).
Even if it's only a message, having correct information would be better. I tried to refresh Virtualmin, without any success. Any idea?
Peter
(111 rep)
May 17, 2021, 02:42 PM
• Last activity: May 17, 2021, 06:55 PM
0
votes
1
answers
1297
views
How can I use a second nginx web app (swizzin) alongside virtualmin nginx site?
I have a goal of using my VPS for web host and seedbox. I cant figure out a way to get it to work with it. Currently every subdomain (including the one I configured swizzin to use) goes straight to the Virtualmin "under construction" page. Could anyone help me out (with detailed instructions because...
I have a goal of using my VPS for web host and seedbox. I cant figure out a way to get it to work with it. Currently every subdomain (including the one I configured swizzin to use) goes straight to the Virtualmin "under construction" page.
Could anyone help me out (with detailed instructions because i'm very bad at this). I have tried some suggestions of reverse proxy and upstream but was unable to get it to work.
Currently at 4 days of trying to do this.
Andrew Delphiki
(1 rep)
Sep 26, 2020, 05:18 AM
• Last activity: Mar 24, 2021, 07:11 AM
0
votes
1
answers
30
views
A Record Configuration: Host Content on Webserver IP and Smtp IP From Another Server
I’m stuck on a basic dns issue here "I think". I can send email but unable to receive. What I want to achieve is host webfiles of my webpage on 184.69.151.38 and use smtp ip from 193.47.34.77. I think my A records might be wrong. [![enter image description here][1]][1] What is happening is mxtoolbox...
I’m stuck on a basic dns issue here "I think". I can send email but unable to receive.
What I want to achieve is host webfiles of my webpage on 184.69.151.38 and use smtp ip from
193.47.34.77.
I think my A records might be wrong.
What is happening is mxtoolbox is picking up as the email server as 184.69.151.38 but the smtp is supposed to be sending from 193.47.34.77. *Likely* dns issue. I'm just not seeing it.
Yet smtp test looks *decent*, not perfect but should work.



mister mcdoogle
(505 rep)
Nov 16, 2020, 09:03 PM
• Last activity: Nov 17, 2020, 02:35 AM
8
votes
1
answers
25067
views
Postfix Issue: Connection Timed Out
From the Roundcube dashboard, it shows that the message is sent successfully. However, when I check into `/var/log/mail.log`, it shows like this: https://pasteid.fledix.com/5mat It's not even receiving messages from other emails. * I went to _Hostname_ and _DNS Client_ in _Network Configuration_ and...
From the Roundcube dashboard, it shows that the message is sent successfully.
However, when I check into
/var/log/mail.log
, it shows like this:
https://pasteid.fledix.com/5mat
It's not even receiving messages from other emails.
* I went to _Hostname_ and _DNS Client_ in _Network Configuration_ and changed the DNS servers to 127.0.0.1
, 8.8.8.8
, and 8.8.4.4
. (It had only one: that is my dedicated IP)
* I restarted saslauthd
and postfix
several times.
* I changed the TLS to default for the Dovecot server.
* I am a total layman.
One thing that struck me is that when I log into the Webmin panel, the system hostname shows as my chosen hostname (xxx.xxx.xxx.xx)
, where xxx.xxx.xxx.xxx
is my dedicated IP. In other Webmin installations, I have seen it shows as the hostname (127.0.1.1)
.
Can anyone please help me out?
schttrj
(81 rep)
Oct 22, 2020, 11:32 AM
• Last activity: Oct 23, 2020, 02:19 PM
1
votes
3
answers
1129
views
Webmin not showing running processes after upgrade to Ubuntu Server 20.04 from 18.04
A little background- I recently upgraded my headless Ubuntu Server 18.04 install to 20.04. In that process, webmin somehow was gone from my system. The repository was disabled. So I re-enabled, then re-installed. Most everything was where I wanted it to be (SMB server config) and basically only my m...
A little background- I recently upgraded my headless Ubuntu Server 18.04 install to 20.04. In that process, webmin somehow was gone from my system. The repository was disabled. So I re-enabled, then re-installed. Most everything was where I wanted it to be (SMB server config) and basically only my menu customizations and custom commands were gone.
Now, on webmin, it will not show running processes. It say's 0. That is the only thing I've noticed that is broken. So I posted on webmin's github page, and got a prompt response that the issue was fixed here . So I guess my question is more of a git question than a webmin question, because I really am not sure how to implement the fix on that page to my webmin install. If anyone can steer me in the right direction I'd be appreciative of that.
user491485
(13 rep)
May 7, 2020, 03:58 PM
• Last activity: Jun 26, 2020, 08:21 PM
0
votes
1
answers
1803
views
(OPENVPN/OPENSSL) Configuration file routines:STR_COPY:variable has no value:conf_def
I can't run "openssl req" to create a new key, the output presents an error error on line 39 of /etc/openvpn/openvpn-ssl.cnf 140264035997600:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 39 line 39 of openvpn-ssl.cnf reads: dir = $dir/keys/ # Where eve...
I can't run "openssl req" to create a new key, the output presents an error
error on line 39 of /etc/openvpn/openvpn-ssl.cnf
140264035997600:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 39
line 39 of openvpn-ssl.cnf reads:
dir = $dir/keys/ # Where everything is kept
Obs.:
I search and found this article, but it is not useful. I don't have a vars file https://ubuntuforums.org/showthread.php?t=2218935
têcêpêipê
(1 rep)
Mar 22, 2019, 12:33 PM
• Last activity: Feb 23, 2020, 11:34 AM
0
votes
1
answers
467
views
SSL and login not working after replacing certificate
I am running Webmin on Debian, configured to use SSL. The certificate is about to expire, so I generated a new one and imported it using the GUI (pasted cert and key in PEM format, reused existing chain file). Now Webmin will insist on speaking plain HTTP on that port. When I try to log in, it rejec...
I am running Webmin on Debian, configured to use SSL. The certificate is about to expire, so I generated a new one and imported it using the GUI (pasted cert and key in PEM format, reused existing chain file).
Now Webmin will insist on speaking plain HTTP on that port. When I try to log in, it rejects my user credentials (local user account).
I opened an SSH session on the server and examined
/etc/webmin/miniserv.*
. The .cert
and .pem
file have an updated timestamp and their contents appear to match what I uploaded. The .conf
file also has a recent timestamp, though I have no idea what has changed here.
EDIT: I have tried manually replacing miniserv.cert
and miniserv.pem
with the previous cert and key files, then restarting Webmin. No change—the server responds in plain HTTP and my login no longer works.
What gives?
user149408
(1515 rep)
Dec 19, 2019, 10:09 PM
• Last activity: Feb 3, 2020, 05:30 AM
Showing page 1 of 20 total questions