如何查明 gvfs 与哪个用户连接到 smb 共享

如何查明 gvfs 与哪个用户连接到 smb 共享

我可以使用以下命令连接到网络驱动器:

( echo myusername; echo MYDOMAIN; echo password123 ) | gio mount smb://127.0.0.1/Sharename

我可以获得挂载点的一些文件属性:

gio info smb://127.0.0.1/Sharename

Anzeigename: Sharenameauf 127.0.0.1
Name bearbeiten: /
Name: /
Typ: directory
Größe:  0
Adresse: smb://127.0.0.1/Sharename/
Attribute:
  standard::type: 2
  standard::name: /
  standard::display-name: Sharename auf 127.0.0.1
  standard::edit-name: /
  standard::icon: folder-remote, folder-remote-symbolic
  standard::content-type: inode/directory
  standard::size: 0
  standard::allocated-size: 0
  standard::symbolic-icon: folder-remote-symbolic, folder-remote
  etag::value: 0
  id::filesystem: smb-share:server=127.0.0.1,share=Sharename
  access::can-trash: FALSE
  time::modified: 0
  time::modified-usec: 0
  time::access: 0
  time::access-usec: 0
  time::changed: 0
  time::changed-usec: 0
  unix::device: 2648392497
  unix::inode: 6160419607250089214

但是如何获取连接到共享的用户的名称(在上面的情况下为“myusername”)?

相关内容