DirectAdmin 1.61.0 has been released

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,021
Hello,

We're very pleased to announce the release of:
DirectAdmin 1.61.0

This is a major release with many new features and bug-fixes.

All changes can be found here:
https://www.directadmin.com/versions.php?version=1.610000

Just some of the New Features:
Some of the Bug-Fixes:

To update, go to:
Code:
Admin Level » Licensing / Updates » Update DirectAdmin
Let us know if you run into any issues.

Thanks!
John
 

k1l0b1t

New member
Joined
May 10, 2020
Messages
11
Location
Belgium
It's there in Enhanced (Checkbox is next to the delete button) and trash folder is in "~/.trash/"

I have another issue while making backups on user-level:


Error Compressing the backup file backup-May-21-2020-2.tar.gz : /bin/tar: backup/users.list.lock: Cannot open: Permission denied
/bin/tar: Exiting with failure status due to previous errors

(First backup was before I upgraded to the new update)
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,080
Location
LT, EU
I'm confused by this. I have AllowUsers in my sshd_config now to allow for a manually created user to access SSH, root login is disabled. Will this user no longer have SSH access after this update?
It does not affect old installations.

If you wish - PermitRootLogin no/without-password can be used to forbid root authentication with a password (or at all) and all the AllowUsers lines removed (SSH access can be controlled by setting the shell to /bin/false in /etc/passwd).
 

jayw1

Verified User
Joined
Nov 20, 2019
Messages
166
Location
USA
It does not affect old installations.

If you wish - PermitRootLogin no/without-password can be used to forbid root authentication with a password (or at all) and all the AllowUsers lines removed (SSH access can be controlled by setting the shell to /bin/false in /etc/passwd).
I'd rather just keep it the way I have now. PermitRootLogin no and AllowUsers user and then just su. "user" is protected with 2fa, I assume this will all just continue to work after the upgrade then?
 

jayw1

Verified User
Joined
Nov 20, 2019
Messages
166
Location
USA
Also, regarding the CSF integration.

"Once you have this copy of DA, to flip over to this integration, delete the files; /usr/local/directdmin/scripts/custom/block_ip.sh /usr/local/directdmin/scripts/custom/brute_force_notice_ip.sh /usr/local/directdmin/scripts/custom/show_blocked_ips.sh /usr/local/directdmin/scripts/custom/unblock_ip.sh"

I don't have any of these files. No further action needed?
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,021
Also, regarding the CSF integration.

"Once you have this copy of DA, to flip over to this integration, delete the files; /usr/local/directdmin/scripts/custom/block_ip.sh /usr/local/directdmin/scripts/custom/brute_force_notice_ip.sh /usr/local/directdmin/scripts/custom/show_blocked_ips.sh /usr/local/directdmin/scripts/custom/unblock_ip.sh"

I don't have any of these files. No further action needed?
If you had installed CSF manually without our installer, then no action would be needed, and DA's BFM would start to talk to CSF. Without the scripts, it was likely not talking to CSF before, but that would have been fine as CSF as it's own scanning. DA's BFM also has it's own log scanner and uses a different formula to catch slow/long term brute force attacks.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,004
Location
Maastricht
I'm having a strange thingy with CSF now.
I upgraded to this newest DA and now suddenly I've got a "Configserver Security & Firewall" under the reseller account. Nice.
However when clicking on it, it says: "You do not have access to this feature".

So how/where can we give access to a reseller or if this can't be done, hide the Configserver option?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,080
Location
LT, EU
I'm having a strange thingy with CSF now.
I upgraded to this newest DA and now suddenly I've got a "Configserver Security & Firewall" under the reseller account. Nice.
However when clicking on it, it says: "You do not have access to this feature".

So how/where can we give access to a reseller or if this can't be done, hide the Configserver option?
Shouldn't be related to DA update. Maybe some new feature in CSF plugin?
 

Imtek

Verified User
Joined
Dec 11, 2005
Messages
150
Location
The Netherlands
@Richard G I also see it, does not look that it is too well documented at CSF but showing in release notes (https://download.configserver.com/csf/changelog.txt):

13.01 - Added reseller support in InterWorx
Added reseller support in DirectAdmin

Also here it show "You do not have access to this feature".

Also in /etc/csf/csf.resellers or GUI side (under DirectAdmin Resellers) you can edit the file too .

I tried adding a test client, it looks that it works.
 

k1l0b1t

New member
Joined
May 10, 2020
Messages
11
Location
Belgium
It's there in Enhanced (Checkbox is next to the delete button) and trash folder is in "~/.trash/"

I have another issue while making backups on user-level:


Error Compressing the backup file backup-May-21-2020-2.tar.gz : /bin/tar: backup/users.list.lock: Cannot open: Permission denied
/bin/tar: Exiting with failure status due to previous errors

(First backup was before I upgraded to the new update)
Update:

It seems it does make the backup at user-level, but gives that error. No file in my /usr/local/directadmin/data/users/admin/ directory called "users.list.lock, there is a users.list, but no lockfile. This might be a bug.

Reseller level /admin level backup works, user level backup does not.
 

Wanabo

Verified User
Joined
Jan 19, 2013
Messages
209
Yesterday I updated DA and installed with CB (web user interface /admin/plugins/custombuild?tab=build-software) Build netdata on two servers. After that I found a new link: Evolution: Admin Level -> Admin Tools -> Netdata server metrics.
I looked through the netdata and all seems ok.

Today those links are gone on both servers.
When I manually enter CMD_NETDATA_SOCK the following error is thrown:
Code:
error=1&text=An%20error%20has%20occurred&details=Cannot%20find%20the%20socket%20%27%2Fvar%2Frun%2Fnetdata%2Fnetdata%2Esock%27%20as%20netdata%2E%3Cbr%3E%0A%3Cbr%3E%0A
So there is a problem with the socket.
In the output of my cron.daily I see today multiple errors regarding netdata:

Code:
/etc/cron.daily/netdata-updater:

Entering /tmp/netdata-updater-3tBrmJ

  ^
  |.-.   .-.   .-.   .-.   .  netdata
  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  (C) Copyright 2017, Costa Tsaousis
  All rights reserved
  Released under GPL v3+

  You are about to install netdata to this system.
  netdata will be installed at:

                    /opt/netdata

  The following changes will be made to your system:

  # USERS / GROUPS
  User 'netdata' and group 'netdata' will be added, if not present.

  # LOGROTATE
  This file will be installed if logrotate is present.

   - /etc/logrotate.d/netdata

  # SYSTEM INIT
  This file will be installed if this system runs with systemd:

   - /lib/systemd/system/netdata.service

   or, for older Centos, Debian/Ubuntu or OpenRC Gentoo:

   - /etc/init.d/netdata         will be created


  This package can also update a netdata installation that has been
  created with another version of it.

  Your netdata configuration will be retained.
  After installation, netdata will be (re-)started.

  netdata re-distributes a lot of open source software components.
  Check its full license at:
  https://github.com/netdata/netdata/blob/master/LICENSE.md
Creating directory /opt/netdata
Verifying archive integrity...     0%    25%    51%    77%  100%   All good.
Uncompressing netdata, the real-time performance and health monitoring system     0%    25%    51%    77%  100%  
Unknown option ' --auto-update --disable-telemetry'. Ignoring it.
 --- Attempt to create user/group netdata/netadata --- 
Group 'netdata' already exists.
User 'netdata' already exists.
 --- Add user netdata to required user groups --- 
Group 'docker' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

User 'netdata' is already in group 'nginx'.
Group 'varnish' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

Group 'haproxy' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

User 'netdata' is already in group 'adm'.
Group 'nsd' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

Group 'proxy' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

Group 'squid' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

Group 'ceph' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

User 'netdata' is already in group 'nobody'.
Group 'I2C' does not exist.
 FAILED  Failed to add netdata user to secondary groups 

 --- Check SSL certificates paths --- 
 --- Install logrotate configuration for netdata --- 
[/opt/netdata]# chmod 644 /etc/logrotate.d/netdata 
 OK   

 --- Telemetry configuration --- 
You can opt out from anonymous statistics via the --disable-telemetry option, or by creating an empty file /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics 

 --- Install netdata at system init --- 
Installing systemd service...
[/opt/netdata]# cp system/netdata.service /lib/systemd/system/netdata.service 
 OK   

[/opt/netdata]# systemctl daemon-reload 
 OK   

[/opt/netdata]# systemctl enable netdata 
 OK   

 --- Install (but not enable) netdata updater tool --- 
Update script is located at /opt/netdata/usr/libexec/netdata/netdata-updater.sh

 --- Check if we must enable/disable the netdata updater tool --- 
You chose *NOT* to enable auto-update, removing any links to the updater from cron (it may have happened if you are reinstalling)

Removing cron reference: /etc/cron.daily/netdata-updater

 --- creating quick links --- 
[/opt/netdata]# rm sbin 
 OK   

[/opt/netdata]# ln -s bin sbin 
 OK   

[/opt/netdata/usr]# rm bin 
 OK   

[/opt/netdata/usr]# ln -s ../bin bin 
 OK   

[/opt/netdata/usr]# rm sbin 
 OK   

[/opt/netdata/usr]# ln -s ../bin sbin 
 OK   

[/opt/netdata/usr]# rm local 
 OK   

[/opt/netdata/usr]# ln -s . local 
 OK   

[/opt/netdata]# rm netdata-configs 
 OK   

[/opt/netdata]# ln -s etc/netdata netdata-configs 
 OK   

[/opt/netdata]# rm netdata-web-files 
 OK   

[/opt/netdata]# ln -s usr/share/netdata/web netdata-web-files 
 OK   

[/opt/netdata]# rm netdata-plugins 
 OK   

[/opt/netdata]# ln -s usr/libexec/netdata netdata-plugins 
 OK   

[/opt/netdata]# rm netdata-dbs 
 OK   

[/opt/netdata]# ln -s var/lib/netdata netdata-dbs 
 OK   

[/opt/netdata]# rm netdata-metrics 
 OK   

[/opt/netdata]# ln -s var/cache/netdata netdata-metrics 
 OK   

[/opt/netdata]# rm netdata-logs 
 OK   

[/opt/netdata]# ln -s var/log/netdata netdata-logs 
 OK   

[/opt/netdata/etc/netdata]# rm orig 
 OK   

[/opt/netdata/etc/netdata]# ln -s ../../usr/lib/netdata/conf.d orig 
 OK   

 --- fix permissions --- 
[/opt/netdata]# chmod g+rx\,o+rx /opt 
 OK   

[/opt/netdata]# chown -R netdata:netdata /opt/netdata 
 OK   

 --- fix plugin permissions --- 
[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ioping 
 OK   

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/ioping 
 OK   

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/cgroup-network 
 OK   

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/cgroup-network 
 OK   

[/opt/netdata]# chown root:netdata bin/fping 
 OK   

[/opt/netdata]# chmod 4750 bin/fping 
 OK   

Save install options
 --- starting netdata --- 
 --- Restarting netdata instance --- 

Stopping all netdata threads
[/opt/netdata]# stop_all_netdata 
 OK   

Starting netdata using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata 
 OK   

Ooops! it seems netdata is not started.
Attempting another netdata start using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata 
 OK   

Hm... it seems netdata is still not started.
Netdata service still not started, attempting another forced restart by running '/opt/netdata/bin/netdata '
[/opt/netdata]# stop_all_netdata 
 OK   

[/opt/netdata]# /opt/netdata/bin/netdata 
/opt/netdata/bin/netdata: line 4: /opt/netdata/bin/srv/netdata: No such file or directory
 FAILED   


  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'  
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

[/opt/netdata]# chmod 0644 /opt/netdata/etc/netdata/netdata.conf 
 OK
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,080
Location
LT, EU
Yesterday I updated DA and installed with CB (web user interface /admin/plugins/custombuild?tab=build-software) Build netdata on two servers. After that I found a new link: Evolution: Admin Level -> Admin Tools -> Netdata server metrics.
I looked through the netdata and all seems ok.

Today those links are gone on both servers.
When I manually enter CMD_NETDATA_SOCK the following error is thrown:
Code:
error=1&text=An%20error%20has%20occurred&details=Cannot%20find%20the%20socket%20%27%2Fvar%2Frun%2Fnetdata%2Fnetdata%2Esock%27%20as%20netdata%2E%3Cbr%3E%0A%3Cbr%3E%0A
So there is a problem with the socket.
In the output of my cron.daily I see today multiple errors regarding netdata:

Code:
/etc/cron.daily/netdata-updater:

Entering /tmp/netdata-updater-3tBrmJ

  ^
  |.-.   .-.   .-.   .-.   .  netdata
  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  (C) Copyright 2017, Costa Tsaousis
  All rights reserved
  Released under GPL v3+

  You are about to install netdata to this system.
  netdata will be installed at:

                    /opt/netdata

  The following changes will be made to your system:

  # USERS / GROUPS
  User 'netdata' and group 'netdata' will be added, if not present.

  # LOGROTATE
  This file will be installed if logrotate is present.

   - /etc/logrotate.d/netdata

  # SYSTEM INIT
  This file will be installed if this system runs with systemd:

   - /lib/systemd/system/netdata.service

   or, for older Centos, Debian/Ubuntu or OpenRC Gentoo:

   - /etc/init.d/netdata         will be created


  This package can also update a netdata installation that has been
  created with another version of it.

  Your netdata configuration will be retained.
  After installation, netdata will be (re-)started.

  netdata re-distributes a lot of open source software components.
  Check its full license at:
  https://github.com/netdata/netdata/blob/master/LICENSE.md
Creating directory /opt/netdata
Verifying archive integrity...     0%    25%    51%    77%  100%   All good.
Uncompressing netdata, the real-time performance and health monitoring system     0%    25%    51%    77%  100% 
Unknown option ' --auto-update --disable-telemetry'. Ignoring it.
--- Attempt to create user/group netdata/netadata ---
Group 'netdata' already exists.
User 'netdata' already exists.
--- Add user netdata to required user groups ---
Group 'docker' does not exist.
FAILED  Failed to add netdata user to secondary groups

User 'netdata' is already in group 'nginx'.
Group 'varnish' does not exist.
FAILED  Failed to add netdata user to secondary groups

Group 'haproxy' does not exist.
FAILED  Failed to add netdata user to secondary groups

User 'netdata' is already in group 'adm'.
Group 'nsd' does not exist.
FAILED  Failed to add netdata user to secondary groups

Group 'proxy' does not exist.
FAILED  Failed to add netdata user to secondary groups

Group 'squid' does not exist.
FAILED  Failed to add netdata user to secondary groups

Group 'ceph' does not exist.
FAILED  Failed to add netdata user to secondary groups

User 'netdata' is already in group 'nobody'.
Group 'I2C' does not exist.
FAILED  Failed to add netdata user to secondary groups

--- Check SSL certificates paths ---
--- Install logrotate configuration for netdata ---
[/opt/netdata]# chmod 644 /etc/logrotate.d/netdata
OK  

--- Telemetry configuration ---
You can opt out from anonymous statistics via the --disable-telemetry option, or by creating an empty file /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics

--- Install netdata at system init ---
Installing systemd service...
[/opt/netdata]# cp system/netdata.service /lib/systemd/system/netdata.service
OK  

[/opt/netdata]# systemctl daemon-reload
OK  

[/opt/netdata]# systemctl enable netdata
OK  

--- Install (but not enable) netdata updater tool ---
Update script is located at /opt/netdata/usr/libexec/netdata/netdata-updater.sh

--- Check if we must enable/disable the netdata updater tool ---
You chose *NOT* to enable auto-update, removing any links to the updater from cron (it may have happened if you are reinstalling)

Removing cron reference: /etc/cron.daily/netdata-updater

--- creating quick links ---
[/opt/netdata]# rm sbin
OK  

[/opt/netdata]# ln -s bin sbin
OK  

[/opt/netdata/usr]# rm bin
OK  

[/opt/netdata/usr]# ln -s ../bin bin
OK  

[/opt/netdata/usr]# rm sbin
OK  

[/opt/netdata/usr]# ln -s ../bin sbin
OK  

[/opt/netdata/usr]# rm local
OK  

[/opt/netdata/usr]# ln -s . local
OK  

[/opt/netdata]# rm netdata-configs
OK  

[/opt/netdata]# ln -s etc/netdata netdata-configs
OK  

[/opt/netdata]# rm netdata-web-files
OK  

[/opt/netdata]# ln -s usr/share/netdata/web netdata-web-files
OK  

[/opt/netdata]# rm netdata-plugins
OK  

[/opt/netdata]# ln -s usr/libexec/netdata netdata-plugins
OK  

[/opt/netdata]# rm netdata-dbs
OK  

[/opt/netdata]# ln -s var/lib/netdata netdata-dbs
OK  

[/opt/netdata]# rm netdata-metrics
OK  

[/opt/netdata]# ln -s var/cache/netdata netdata-metrics
OK  

[/opt/netdata]# rm netdata-logs
OK  

[/opt/netdata]# ln -s var/log/netdata netdata-logs
OK  

[/opt/netdata/etc/netdata]# rm orig
OK  

[/opt/netdata/etc/netdata]# ln -s ../../usr/lib/netdata/conf.d orig
OK  

--- fix permissions ---
[/opt/netdata]# chmod g+rx\,o+rx /opt
OK  

[/opt/netdata]# chown -R netdata:netdata /opt/netdata
OK  

--- fix plugin permissions ---
[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/apps.plugin
OK  

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/apps.plugin
OK  

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ioping
OK  

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/ioping
OK  

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/cgroup-network
OK  

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/cgroup-network
OK  

[/opt/netdata]# chown root:netdata bin/fping
OK  

[/opt/netdata]# chmod 4750 bin/fping
OK  

Save install options
--- starting netdata ---
--- Restarting netdata instance ---

Stopping all netdata threads
[/opt/netdata]# stop_all_netdata
OK  

Starting netdata using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata
OK  

Ooops! it seems netdata is not started.
Attempting another netdata start using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata
OK  

Hm... it seems netdata is still not started.
Netdata service still not started, attempting another forced restart by running '/opt/netdata/bin/netdata '
[/opt/netdata]# stop_all_netdata
OK  

[/opt/netdata]# /opt/netdata/bin/netdata
/opt/netdata/bin/netdata: line 4: /opt/netdata/bin/srv/netdata: No such file or directory
FAILED  


  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-' 
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

[/opt/netdata]# chmod 0644 /opt/netdata/etc/netdata/netdata.conf
OK
 

Yoshua

Verified User
Joined
Apr 9, 2007
Messages
80
Location
Spain
Hello, please, what would be the process to uninstall this new Netdata feature. It has only worked fine for a few days, sending constant emails until it stopped working, excessive load on the server, a new feature without testing correctly. :cry:

In the Rspamd interface there is no option to return to the control panel, in Alex's plugin when using the disconnect button you returned to the DA.

Thank you.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,004
Location
Maastricht
I don't understand the "email only" set for example.

There are default sets, but in the panel I don't see anything. Does this only work per ssh or per commandline in the browser or...?

Can anybody give me an example on how to create an email only packets from this new set for a user?
 
Top