Po instalacji samby:
Kod: Zaznacz cały
apt-get install samba samba-doc smbfs winbind
Kod: Zaznacz cały
nano /etc/samba/smb.conf
Kod: Zaznacz cały
[global]
netbios name = Serwer-1
server string = Samba serwer-1
workgroup = LAN_Workgroup
#encrypt passwords = true
security = user
map to guest = Bad User
encrypt passwords = true
smb passwd file = /etc/smbpass
passdb backend = tdbsam
#dos charset = 852
#unix charset = UTF8
#display charset = UTF8
#workgroup = TU WPISAĆ NAZWĘ SWOJEJ GRUPY np MSHOME,
#netbios name = TU WPISAĆ SWOJĄ NAZWĘ np jinx
#server string = TU WPISZ np UBUNTU
#interfaces = eth0
#security = share
#update encrypted = Yes
#map to guest = właściwa nazwa kompa
#null passwords = Yes
log file = /var/log/samba/log.%m
#max log size = 50
printcap name = cups
os level = 65
wins support = Yes
name resolve order = lmhosts host wins bcast
#hosts allow = TU WPISAĆ DOPUSZCZANE HOSTY np 192.168.1.2
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
# max log size = 1000
# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
# syslog only = no
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 5
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
#################################################################################
[dane]
browseable = yes
path = /home/dariusz/udostepnione
write list = dariusz
comment = programy
guest ok = no
valid users = dariusz
#locking = yes
#create mode = 0777
#directory mode = 0777
####################################################################################
Kod: Zaznacz cały
smbpasswd -a dariusz
Kod: Zaznacz cały
reboot
Chcąc wejść np. z Windows XP wybierając Uruchom... i wpisując:
Kod: Zaznacz cały
//192.168.1.111
nie wyświetlony zostaje udział samby ani zapytanie o login i hasło.
Dopiero po nadaniu hasła:
Kod: Zaznacz cały
smbpasswd -a dariusz
bez restartu systemu mamy możliwość wejścia.
Czy ktoś rozwiązał już wcześniej ten problem?