|
1492.
|
|
|
sudo mkdir -p /srv/samba/share
|
|
|
|
sudo mkdir -p /srv/samba/share
|
|
Translated by
Vojtěch Trefný
|
|
|
|
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:
|
|
|
|
Nakonec restartujte <application>sambu</application> pro nastavení nové konfigurace:
|
|
Translated by
Vojtěch Trefný
|
|
|
|
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"/>.
|
|
|
|
Opakujeme, že výše uvedené nastavení povoluje přístup všem klientům v místní síti. Pro zabezbečnější nastavení čtěte <xref linkend="samba-fileprint-security"/>.
|
|
Translated by
Vojtěch Trefný
|
|
|
|
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)
|
|
1501.
|
|
|
For in depth Samba configurations see the <ulink url="http://samba.org/samba/docs/man/Samba-HOWTO-Collection/">Samba HOWTO Collection</ulink>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:251(para) serverguide/C/samba.xml:349(para) serverguide/C/samba.xml:704(para) serverguide/C/samba.xml:1098(para)
|