feat: add SMB networking support
This commit is contained in:
1 parent
6665750528
commit
2af2e90606
55 files changed
+7456
-158
No files matched your search
@@ -0,0 +1,61 @@
|
||||
.TH SMB 1
|
||||
.SH NAME
|
||||
smb \- list, mount and unmount SMB network shares
|
||||
.SH SYNOPSIS
|
||||
.B smb
|
||||
.I command
|
||||
.RI [ options ]
|
||||
.SH DESCRIPTION
|
||||
.B smb
|
||||
connects to file servers that speak SMB 2 or SMB 3 (Windows, Samba, most NAS devices).
|
||||
A mounted share becomes an ordinary drive, usable by every program.
|
||||
Mounting is done by the
|
||||
.BR smbfs (1)
|
||||
helper, which keeps running for as long as the share is mounted.
|
||||
.SH COMMANDS
|
||||
.TP
|
||||
.B shares \fI//host\fR
|
||||
List the shares a server offers.
|
||||
.TP
|
||||
.B mount \fI//host/share\fR
|
||||
Mount a share and print the drive it was given.
|
||||
.TP
|
||||
.B list
|
||||
Show the shares that are mounted.
|
||||
.TP
|
||||
.B unmount \fIdrive\fR
|
||||
Disconnect a mounted share, for example
|
||||
.BR "smb unmount 32" .
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-\-user \fINAME\fR
|
||||
Log on as NAME. Without a user name the guest account is tried.
|
||||
.TP
|
||||
.B \-\-domain \fINAME\fR
|
||||
Domain or workgroup of the account.
|
||||
.TP
|
||||
.B \-\-password \fIPW\fR
|
||||
Password. If omitted, the SMB_PASSWORD environment variable is used, and
|
||||
otherwise you are asked for it.
|
||||
.TP
|
||||
.B \-\-port \fIN\fR
|
||||
Server port (default 445).
|
||||
.TP
|
||||
.B \-\-label \fITEXT\fR
|
||||
Drive label for a mounted share.
|
||||
.TP
|
||||
.B \-\-ro
|
||||
Mount read-only.
|
||||
.SH ADDRESSES
|
||||
A share is written
|
||||
.IR //host/share ,
|
||||
.I smb://host/share
|
||||
or
|
||||
.IR \e\ehost\eshare .
|
||||
A user may be included as
|
||||
.IR smb://user@host/share .
|
||||
.SH LIMITS
|
||||
SMB 1, Kerberos logons and SMB 3 encryption are not supported. A server or
|
||||
share that insists on encryption is refused.
|
||||
.SH SEE ALSO
|
||||
.BR smbfs (1)
|
||||
@@ -0,0 +1,39 @@
|
||||
.TH SMBFS 1
|
||||
.SH NAME
|
||||
smbfs \- provider process that serves a mounted SMB share
|
||||
.SH SYNOPSIS
|
||||
.B smbfs
|
||||
.I //host/share
|
||||
.RB [ \-\-user
|
||||
.IR NAME ]
|
||||
.RB [ \-\-domain
|
||||
.IR NAME ]
|
||||
.RB [ \-\-port
|
||||
.IR N ]
|
||||
.RB [ \-\-label
|
||||
.IR TEXT ]
|
||||
.RB [ \-\-ro ]
|
||||
.SH DESCRIPTION
|
||||
.B smbfs
|
||||
logs on to an SMB server, registers a drive with the kernel and answers every
|
||||
file operation made on that drive by talking SMB to the server. It is normally
|
||||
started by Files or by
|
||||
.BR smb (1)
|
||||
rather than by hand.
|
||||
.PP
|
||||
The password is read from the SMB_PASSWORD environment variable so that it
|
||||
never appears in an argument list.
|
||||
.PP
|
||||
On startup one status line is written to standard output:
|
||||
.B OK
|
||||
.I drive
|
||||
when the share is mounted, or
|
||||
.B ERR
|
||||
.I status message
|
||||
when it could not be.
|
||||
.PP
|
||||
The share stays mounted until the process exits. Ejecting the drive asks it to
|
||||
close its files, log off and exit. If the connection drops it reconnects on the
|
||||
next file operation.
|
||||
.SH SEE ALSO
|
||||
.BR smb (1)
|
||||
Reference in new issue
Block a user