1 .\" Copyright (C) 2010 Geoff Johnstone.
2 .\" See section COPYING for conditions for redistribution.
3 .TH usmb 1 "April 2010" "usmb" "User Commands"
6 usmb \- Mount SMB/CIFS shares via FUSE
8 usmb [\-c \fIfile\fR] [\-d] [\-f] \fImount_id\fR
10 usmb [\-c \fIfile\fR] \-u \fImount_id\fR
13 usmb mounts SMB and CIFS shares through FUSE, including Samba shares and
14 Windows shared folders. Unlike some other such filesystems, usmb can mount
15 shares from any server, including those not browsable or advertised on the
18 Shares, usernames and other details are defined in a configuration file, by
19 default ${HOME}/.usmb.conf.
22 \fB\-c\fR \fIfile\fR, \fB\-\-config\fR=\fIfile\fR
23 Use \fIfile\fR rather than ${HOME}/.usmb.conf as the configuration file.
25 \fB\-d\fR, \fB\-\-debug\fR
28 \fB\-f\fR, \fB\-\-nofork\fR
29 Foreground operation (i.e. don't daemonise).
31 \fB\-h\fR, \fB\-\-help\fR
32 Show usage information and exit.
34 \fB\-u\fR, \fB\-\-unmount\fR
35 Unmount the given filesystem.
37 \fB\-v\fR, \fB\-\-version\fR
38 Show usmb, FUSE and Samba versions and exit.
42 usmb uses the configuration file ${HOME}/.usmb.conf to define shares and the
43 credentials used to access them. The configuration file is an XML file with
44 two main elements: credentials and mounts. The file can contain any number of
45 credentials and mounts elements; the whole file is wrapped in a usmbconfig
50 <credentials id="\fIID used in mount elements\f(CR">
51 <domain>\fIdomain or workgroup\f(CR</domain>
52 <username>\fIusername\f(CR</username>
53 <password>\fIpassword (optional)\f(CR</password>
56 Each credentials element defines a domain/username/password triple. If you
57 omit the <password> element then usmb will prompt for a password when the
62 <mount id="\fImount_id\f(CR" credentials="\fIID of credentials to use\f(CR">
63 <server>\fIhostname or IP address of server\f(CR</server>
64 <share>\fIshare name\f(CR</share>
65 <mountpoint>\fI/path/to/mount/point\f(CR</mountpoint>
66 <options>\fImount options\f(CR</options>
69 A mount element describes a share. The id attribute is given on the usmb
70 command line to identify the share to mount. The credentials attribute
71 identified the id of the credentials element to use. The (optional) options
72 element gives a comma-separated list of FUSE mount options:
75 Immediate removal (don't hide files)
78 Set file permissions (octal)
87 Allow access to other users
93 Allow mount over non-empty directory
97 <?xml version="1.0" encoding="ISO-8859-1"?>
101 <credentials id="cred1">
102 <domain>WORKGROUP</domain>
103 <username>user</username>
104 <password>pass</password>
107 <credentials id="cred2">
108 <domain>mydomain</domain>
109 <username>anotheruser</username>
110 <!-- No password element => prompt for password at runtime. -->
113 <mount id="home" credentials="cred1">
114 <server>192.168.0.5</server>
115 <share>myshare</share>
116 <mountpoint>/tmp/smb</mountpoint>
119 <mount id="music" credentials="cred2">
120 <server>winbox</server>
123 <!-- You can use ~/xyz or ~user/xyz for the mountpoint. -->
124 <mountpoint>~/music</mountpoint>
125 <options>allow_root</options>
130 This defines two shares:
132 \\\\192.168.0.5\\myshare on /tmp/smb authenticating as WORKGROUP\\user
134 \\\\winbox\\music on ${HOME}/music authenticating as mydomain\\anotheruser
137 These can be mounted using "usmb home" or "usmb music".
139 Geoff Johnstone, with contributions from Jonathan Schultz, Stijn Hoop, Nigel
140 Smith and Michal Suchanek.
145 usmb should not require a configuration file. The configuration file can
146 provide defaults but you should be able to specify everything necessary on
149 usmb does not support Kerberos / GSSAPI authentication, although a development
150 branch exists with preliminary support.
152 fusermount(1), mount.cifs(8), umount.cifs(8).
154 Copyright \(co 2006-2010 Geoff Johnstone.
156 Licence: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>.