Запрос, который Вы хотите, является этим:
SELECT user,
host
FROM mysql.user
И Вы, вероятно, должны быть зарегистрированы как корень для наблюдения mysql
таблица.
Если Вы хотите работать ssh
команда на одной машине и имеет его, возвращают пользователей MySQL на другой машине, это немного более сложно, но не ужасно трудно.
Посмотрите на вариант монтирования "noperm". Также вы можете рассмотреть вариант "расширения unix" на сервере.
Из справочной страницы mount.cifs
:
setuids
If the CIFS Unix extensions are negotiated with the server the client will attempt to set the effective uid and gid of the local process on newly created files,
directories, and devices (create, mkdir, mknod). If the CIFS Unix Extensions are not negotiated, for newly created files and directories instead of using the
default uid and gid specified on the the mount, cache the new file´s uid and gid locally which means that the uid for the file can change when the inode is
reloaded (or the user remounts the share).
Добавьте эту опцию в свой fstab
. Если он все еще не работает, я предполагаю, что расширения UNIX не работают в вашей установке.