Ubuntu 14.04 instalado. Também instalou samba, samba-common-samba, samba-common, smbclient, nautilus-share, fusemb, winbind e cifs-utils, entre outros.
Estou tentando fazer o Samba funcionar. Agora eu tenho máquinas rodando o Ubuntu 14.04 ou o Lubuntu 14.04, mas logo adicionarei uma caixa do Windows à mixagem. Eu chamo meu grupo de trabalho, "grupo de trabalho".
Depois de instalar todos os pacotes listados acima, eu pensei que a primeira coisa que eu deveria fazer é ter certeza de que tudo está em ordem. Então, eu corri testparm:
main1@system1:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[shared_stuff]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
guest account = main1
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* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = bcast, host
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
guest ok = Yes
[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
[shared_stuff]
path = /home/main1/shared_stuff
read only = No
Em seguida, executei smbtree
, esperando ver o shared_stuff
compartilhado na saída, mas não obtive nada para a saída:
main1@system1:~$ smbtree
Enter main1's password:
main1@system1:~$
Procurei em toda a Internet por qualquer postagem feita por um terráqueo referente a nenhuma saída para o smbtree, mas não consigo descobrir o que está errado. Qualquer ajuda será muito apreciada.
Eu também corri smbtree -d3
:
main1@system1:~$ smbtree -d3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0
Enter main1's password:
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7f06594e7800] mpx_fde[(nil)] fd[7] - disabling
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1b>
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7f06594e7770] mpx_fde[(nil)] fd[7] - disabling
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7f06594e7800] mpx_fde[(nil)] fd[7] - disabling
E eu não tenho ufw
em execução:
main1@system1:~$ sudo ufw status
[sudo] password for main1:
Status: inactive