chmod 750 /usr/bin/df
which removes public read and excute rights.Thank you, it worked, but for admin DirectAdmin, while for the rest of the users, unfortunately notYou could change the permission for example:
chmod 750 /usr/bin/df
which removes public read and excute rights.
Ofcourse change to where your df binary is residing.
[root@server hostline]# chmod 750 /usr/bin/df
[root@server bin]# getfacl /usr/bin/df
getfacl: Usunięcie wiodącego '/' ze ścieżek bezwzględnych
# file: usr/bin/df
# owner: root
# group: root
user::rwx
group::r-x
other::---
[root@server bin]#
[root@server bin]# which df
/usr/bin/df
[aleksand@server ~]$ which df
/usr/bin/df
Yes visible, but not usable anymore for them.the command is still available.
which df
only shows the location, not if they can execute it or not.It is of great importance. This is not a discussion about it@Richard G no, sorry. Also I don't see reason why to disable it? Who cares how much disk space total while user has own quota and it not over-limited.
Yes that is indeed something of great importance. I don't see why blocking a command as df -h would be.where even jailed users were able to see other DA usernames
I would like remove comand "df -h" for users. How can I do this?