Ja jsem Sambu nastavil pomocti navodu na:
http://ubuntuguide.org/wiki/Ubuntu:EdgyStahnul jsem sambu, vytvoril jsem si samba ucet:
sudo smbpasswd -a system_username
gksudo gedit /etc/samba/smbusersInsert the following line into the new file system_username = "network username"Save the edited file To edit network user sudo smbpasswd -a system_usernamePote jsem nasdilel jednu slozku:
sudo mkdir /home/xombox/share
sudo chmod 777 /home/xombox/share/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
gksudo gedit /etc/samba/smb.confFind this line ...
; security = user
...Replace with the following lines security = user
username map = /etc/samba/smbusersAppend the following lines at the end of file [share]
comment = share
path = /home/xombox/share
public = yes
writable = yes
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroupSave the edited filesudo testparm
sudo /etc/init.d/samba restartJelikoz se moje domena, ve ktere chci sdilet soubory, jmenuje "POLE", tak ji taky natlacim, kde se da:
1) system - volby - sdilene adresare, zde by jiz melo byt:
/home/xombox/shared_folderpak dam zalozku "Obecne vlastnosti", napisu nazev domeny, WINS odskrtnu, nevyplnuju.
2)system - sprava -site - zalozka "obecne" - vyplnim jmeno domeny
Vysledek: dostanu se do sdilenych adresaru ostatnich winXP na ostatnich pocitacich, z ostatnich pocitacu se do sdilene slozky v ubuntu dostanu pouze po zadani loginu/hesla, ktere jsem zadal pomoci "sudo smbpasswd -a system_username", muzu zapisovat, mazat a menit soubory.
Pokud byste chteli vypnout logovani do sdilene slozky v ubuntu, tak by melo v smb.conf stacit zmenit:
security = share --> security = user
[share]
comment = Share
path = /home/xombox/share
public = yes
writable = yes
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
-->:
[share]
comment = Share
path = /home/xombox/share
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroupSnad vam to aspon trochu pomuze.