1x2gomountdirs(8) X2Go Server Tool x2gomountdirs(8)
2
3
4
6 x2gomountdirs - Share Client-Side Folder with X2Go Session
7
9 x2gomountdirs <mount_type> <session_id> <username> <key_file> <dir1>
10 [<dir2> [<dir3> [...]]]
11
12
14 x2gomountdirs mounts client-side folders or devices onto mountpoints
15 that are accessible from within your remote X2Go session.
16
17 x2gomountdirs is run with X2Go user privileges and normally issued by
18 an X2Go client application.
19
21 <mount_type>
22 If the mount type is set to ,,dir'' then the client-side mount
23 target is interpreted as a folder. If other, it is interpreted
24 as a device.
25
26 <session_id>
27 The <session_id> is the unique identifier of the X2Go session
28 that this command is run for.
29
30 <username>
31 The owner of session <session_id> is given as the <username>
32 argument.
33
34 <key_file>
35 Location of a temporary private SSH key file (only valid for
36 this command execution).
37
38 <dir1> [<dir2> [<dir3> [...]]]
39 A list of client-side folders or device mount points that shall
40 be mounted for X2Go session <session_id>.
41
43 X2Go uses the fuse-based SSH filesystem (SSHFS) for sharing client-side
44 file resources with X2Go sessions. Users that shall use X2Go folder
45 sharing must be members of the X2Go server's ,,fuse'' POSIX group.
46
48 x2gomountdirs returns some mount point information to stdout if the
49 mounting process has been successful. The mount results are printed
50 line-by-line. The individual lines must be interpreted as shown below:
51
52 line 01: dirs:<local_path>__REVERSESSH_PORT__<sshfs_port>
53 line 02: ssh port:<sshfs_port>
54 line 03: Host:<client_ip>
55 line 04: User:<user>
56 line 05: inserted, sshfs -o <options> \
57 "<user">@<client_ip>:"<local_path>" \
58 "<server_path>" -p <sshfs_port>
59 line 06: mount <local_path> ok
60 line 07: fname: <desktop_icon_name>
61
62 If mounting of a client folder fails, either of the errors is returned
63 (on stdout):
64
65 error 01: mounting of <local_path> failed
66 error 02: insertion of <local_path> failed (already mounted?), not
67 mounting
68
69 As exitcode x2gomoundirs always returns 0.
70
72 x2goumount-session(8)
73
75 This manual has been written by Mike Gabriel <mike.gabriel@das-
76 netzwerkteam.de> for the X2Go project (https://www.x2go.org).
77
78
79
80
81Version 4.1.0.3 Nov 2018 x2gomountdirs(8)