|
1491.
|
|
|
Now that <application>Samba</application> is configured, the directory needs to be created and the permissions changed. From a terminal enter:
|
|
|
|
Nå når <application>Samba</application> er konfigurert, må mappen bli opprettet og tillatelsene endret. Skriv inn følgende i et terminalvindu:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/samba.xml:190(para)
|
|
1492.
|
|
|
sudo mkdir -p /srv/samba/share
|
|
|
|
sudo mkdir -p /srv/samba/share
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/samba.xml:196(command)
|
|
1493.
|
|
|
sudo chown nobody:nogroup /srv/samba/share/
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:197(command)
|
|
1494.
|
|
|
The <emphasis>-p</emphasis> switch tells mkdir to create the entire directory tree if it doesn't exist.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:201(para)
|
|
1495.
|
|
|
Finally, restart the <application>samba</application> services to enable the new configuration:
|
|
|
|
Til slutt, start <application>samba</application>-tjenestene på nytt for å aktivere den nye konfigurasjonen:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/samba.xml:209(para)
|
|
1496.
|
|
|
sudo systemctl restart smbd.service nmbd.service
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:214(command) serverguide/C/samba.xml:335(command) serverguide/C/samba.xml:472(command) serverguide/C/samba.xml:571(command) serverguide/C/samba.xml:921(command) serverguide/C/samba.xml:1075(command) serverguide/C/samba.xml:1181(command) serverguide/C/network-auth.xml:2488(screen) serverguide/C/network-auth.xml:4090(command)
|
|
1497.
|
|
|
Once again, the above configuration gives all access to any client on the local network. For a more secure configuration see <xref linkend="samba-fileprint-security"/>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:221(para)
|
|
1498.
|
|
|
From a Windows client you should now be able to browse to the Ubuntu file server and see the shared directory. If your client doesn't show your share automatically, try to access your server by its IP address, e.g. \\192.168.1.1, in a Windows Explorer window. To check that everything is working try creating a directory from Windows.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:227(para)
|
|
1499.
|
|
|
To create additional shares simply create new <emphasis>[dir]</emphasis> sections in <filename>/etc/samba/smb.conf</filename>, and restart <emphasis>Samba</emphasis>. Just make sure that the directory you want to share actually exists and the permissions are correct.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:231(para)
|
|
1500.
|
|
|
The file share named <emphasis>"[share]"</emphasis> and the path <filename>/srv/samba/share</filename> are just examples. Adjust the share and path names to fit your environment. It is a good idea to name a share after a directory on the file system. Another example would be a share name of <emphasis>[qa]</emphasis> with a path of <filename>/srv/samba/qa</filename>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:238(para)
|