lintpkgsrc comes from pkgtools/lintpkgsrc
[ikiwiki.git] / docs / howtos / HowToMountWindowsShares.mdwn
1 To mount Windows shares at boot-time, you have to do the following:
2
3 Edit /boot/loader.conf (if it does not exist, create it) by adding the folowing line:
4
5     smbfs_load="YES"
6
7
8
9 This will enable the modules at boot-time, if you don't want to reboot now, do:
10
11
12
13     
14
15     # kldload smbfs.ko
16
17 From now on you will have two ways. You have to edit /etc/nsmb.conf if you would like system-wide mounts and you have to edit ~/.nsmbrc if you want a mount only for the current user. First of all, make smbutil encrypt your password (I entered 'mypass' below):
18
19     # smbutil crypt
20
21     Password:
22
23     $$16144562c293a
24
25 Of course you can use a plaintext password as well, but this is safer (you don't want to give out your Windows password, do you? :-D) Now open one of the aforementioned files and add your Windows server and the credentials:
26     
27
28     # The server IP
29
30     [MYWINSERVER]
31
32     addr=192.168.10.23
33
34     # The server credentials
35
36     [MYWINSERVER:USERNAME]
37
38     password=$$16144562c293a 
39
40 Save the file, then open /etc/fstab, and add:
41     
42
43 //Username@MYWINSERVER/sharedfoldername      /mnt/mountpointname        smbfs   rw,-N
44
45 Try it:
46
47
48
49     
50
51     # mount /mnt/mountpointname
52
53 Hope this helped.
54
55
56
57 ## References: 
58
59 http://sig9.com/articles/samba-automount-freebsd http://lists.freebsd.org/pipermail/freebsd-questions/2005-April/085515.html http://www.cyberciti.biz/faq/configure-a-system-to-automount-a-samba-share-with-etcfstab/
60
61
62