It's 2013.
[usmb.git] / usmb.conf
blob972329173b9c2a44d11926a6c7fc410792b3a6e9
1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <!--
4 Example usmb.conf
5 =================
7 This defines two shares:
9 \\192.168.0.5\myshare on /tmp/smb authenticating as WORKGROUP\user
10 \\winbox\music on ${HOME}/music authenticating as mydomain\anotheruser
12 These can be mounted using
14 usmb home
15 usmb music
17 Mount options are comma-separated. Useful options:
19 hard_remove - immediate removal (don't hide files)
20 umask=M - set file permissions (octal)
21 uid=N - set file owner
22 gid=N - set file group
23 allow_other - allow access to other users
24 allow_root - allow access to root
25 nonempty - allow mount over non-empty directory
27 -->
29 <usmbconfig>
31 <credentials id="cred1">
32 <domain>WORKGROUP</domain>
33 <username>user</username>
34 <password>pass</password>
35 </credentials>
37 <credentials id="cred2">
38 <domain>mydomain</domain>
39 <username>anotheruser</username>
40 <!-- No password element => prompt for password at runtime.
41 <password>secret</password>
42 -->
43 </credentials>
45 <mount id="home" credentials="cred1">
46 <server>192.168.0.5</server>
47 <share>myshare</share>
48 <mountpoint>/tmp/smb</mountpoint>
49 </mount>
51 <mount id="music" credentials="cred2">
52 <server>winbox</server>
53 <share>music</share>
55 <!-- You can use ~/xyz or ~user/xyz for the mountpoint. -->
56 <mountpoint>~/music</mountpoint>
57 <options>allow_root</options>
58 </mount>
60 </usmbconfig>