forked from lerwys/Installation_instructions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSAMBA_log
105 lines (72 loc) · 2.66 KB
/
SAMBA_log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
--------------------------------------------------------
Installation Instructions:
resource: http://ubuntuforums.org/showthread.php?t=288534
1 - sudo apt-get install samba samba-commom python-glade2 \
system-config-samba libsmbclient python-smbc smbclient \
smbfs samba4-common-bin samba-dsdb-modules \
samba-common-bin libsamba-credentials0 \
libsamba-hostconfig0 libsamba-policy0 libsamba-util0 \
winbind cifs-utils
-> Create and edit the file /root/.smbcredentials file:
2 - sudo vim /root/.smbcredentials
-> Write your network username and password
> username=<winusername>
> password=<winpassword>
-> save and exit (:wq)
-> Change the /root/.smbcredentials permissions:
3 - sudo chmod 700 /root/.smbcredentials
-> Create mount point
4 - sudo mkdir /media/<mount_point_name>
-> Change its permissions and ownership
5 - sudo chown <user>:<user> /media/<mount_point_name>
6 - sudo chmod 755 /media/<mount_point_name>
-> Edit (append) to the /etc/fstab file:
7 - sudo vim /etc/fstab:
> //centaurus/repositorio /media/windows_network cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
-> save and exit (:wq)
-> Overview the samba config file located at /etc/samba/smb.conf.
It should look like the file located at config_file/smb.conf
located in this repository. If it is not, edit it to
reasssemble or just copy and paste the entire file.
8 - sudo vim etc/samba/smb.conf
-> Edit it!
-> save and exit (:wq)
-> Edit the file /etc/nsswitch.conf to allow ubuntu to figure out
windows hostnames. Edit the line beggining with
"hosts ..." and add the following:
9 - sudo vim /etc/nsswitch.conf
> hosts: files dns wins
-> save and exit (:wq)
-> Overview the config files.
10 - testparm
-> It should look lie the follwing:
++++++++++++++++++++++++++++++++++++++++++++++++++++
testparm dump:
[global]
workgroup = ABTLUS
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
wins server = 10.0.18.5
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
++++++++++++++++++++++++++++++++++++++++++++++++++++