Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto] - errore avvio samba
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
Mazuego
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 110

PostPosted: Fri Oct 28, 2005 9:39 am    Post subject: [risolto] - errore avvio samba Reply with quote

Carissimi... scusate... forse è una domanda banale ma quando avvio il sistema, samba mi da errore. Apro il file di log contenuto all'interno della cartella
Code:
 /var/log/samba/log.smbd

e ci trovo scritto
Code:
 [2005/10/28 11:33:30, 0] smbd/server.c:main(798)
  smbd version 3.0.14a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/10/28 11:33:30, 0] param/loadparm.c:lp_do_parameter(3162)
  Global parameter wins support found in service section!
[2005/10/28 11:33:30, 0] param/params.c:Section(280)
  params.c:Section() - Badly formed line in configuration file: ]
[2005/10/28 11:33:30, 0] param/params.c:pm_process(598)
  params.c:pm_process() - Failed.  Error returned from params.c:parse().

qual'è il problema? grazie a tutti per l'aiuto e la pazienza


Last edited by Mazuego on Mon Oct 31, 2005 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31460
Location: here

PostPosted: Fri Oct 28, 2005 9:53 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-395067-highlight-smbd+c.html
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Mazuego
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 110

PostPosted: Fri Oct 28, 2005 11:18 am    Post subject: Reply with quote

allora... vediamo
-------------------------------------
rc-status
Code:
xdm                                                                 [ started ]
cupsd                                                               [ started ]
local                                                               [ started ]
samba                                                                 [   off ]
vixie-cron                                                          [ started ]
syslog-ng                                                           [ started ]
domainname                                                          [ started ]
net.eth0                                                            [ started ]
netmount                                                            [ started ]

-------------------------------------
smb.conf
Code:

[global]
workgroup = WORKGROUP
server string = Samba Server Linux %v
printcap name = cups
printing = cups
load printers = yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.3.30/40
hosts deny = 0.0.0.0/0
security = share
guest account = samba
guest ok = yes

[public]
        comment = Public Files
        browseable = yes
        public = yes
        create mode = 0766
        guest ok = yes
        path = /home/utente
        wins support = no

[]
path = /home/utente
available = yes
browseable = yes
public = yes
writable = yes

-----------------------------------------------
emerge -pv samba
Code:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-fs/samba-3.0.14a-r2  -acl +cups +doc -kerberos
-ldap -libclamav -mysql -oav +pam -postgres +python -quotas
+readline (-selinux) -winbind -xml +xml2 0 kB

Total size of downloads: 0 kB

-------------------------------------------------
/etc/conf.d/samba
Code:

#add "winbind" to the daemon_list if you also want winbind to start
daemon_list="smbd nmbd"

#----------------------------------------------------------------------------
# Daemons calls: <daemon_name>_<command_option>
#----------------------------------------------------------------------------
my_service_name="samba"
my_service_PRE="unset TMP TMPDIR"
my_service_POST=""

#----------------------------------------------------------------------------
# Daemons calls: <daemon_name>_<command_option>
#----------------------------------------------------------------------------
smbd_start_options="-D"
smbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- ${smbd_start_options}"
smbd_stop="start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid"
smbd_reload="killall -HUP smbd"

nmbd_start_options="-D"
nmbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
nmbd_stop="start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid"
nmbd_reload="killall -HUP nmbd"

winbind_start_options=""
winbind_start="start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- ${winbind_start_options}"
winbind_stop="start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/winbindd"
winbind_reload="killall -HUP winbindd"


ecco qua
Back to top
View user's profile Send private message
Mazuego
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 110

PostPosted: Sat Oct 29, 2005 7:58 am    Post subject: Reply with quote

Scusate... non dovevo riportare queste cose? L'errore mi sembra diverso da quello del link consigliato!
Back to top
View user's profile Send private message
croot
Apprentice
Apprentice


Joined: 07 Jul 2004
Posts: 240
Location: Massa (toscana)

PostPosted: Sun Oct 30, 2005 9:55 am    Post subject: Reply with quote

hai fatto una condivisione senza nome..
[] non ha senso.
ciao.
Back to top
View user's profile Send private message
Mazuego
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 110

PostPosted: Mon Oct 31, 2005 1:55 pm    Post subject: Reply with quote

Ho corretto questo errore (mi era sfuggito grazie mille) ma samba ancora non parte... nel file di log.smb mi dice che
Code:
 [2005/10/31 14:53:20, 0] smbd/server.c:main(798)
  smbd version 3.0.14a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/10/31 14:53:20, 1] auth/auth_util.c:make_server_info_sam(840)
  User samba in passdb, but getpwnam() fails!


che vuol dire? grazie mille a tutti!
Back to top
View user's profile Send private message
PboY
Apprentice
Apprentice


Joined: 02 Feb 2005
Posts: 238
Location: Italia - Monza

PostPosted: Mon Oct 31, 2005 2:06 pm    Post subject: Reply with quote

il search? -_-'

https://forums.gentoo.org/viewtopic-t-394690-highlight-samba+passdb+getpwnam+fails.html
Back to top
View user's profile Send private message
Mazuego
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 110

PostPosted: Mon Oct 31, 2005 3:00 pm    Post subject: Reply with quote

ma che devo fare aggiungere un utente "samba" al sistema?
Code:
 useradd -m -G users -s /bin/bash samba


cosi?
Back to top
View user's profile Send private message
Mazuego
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 110

PostPosted: Mon Oct 31, 2005 3:03 pm    Post subject: Reply with quote

Risolto... adesso funziona! grazie a tutti per l'aiuto e la pazienza!
Back to top
View user's profile Send private message
duffimc
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2005
Posts: 146
Location: Napoli, Italy

PostPosted: Sat Jan 13, 2007 12:00 pm    Post subject: Reply with quote

salve ho un problema simile con samba...
da quando ho collegato il router dlink dsl-524T samba non vuole saperne di avviarsi...all'avvio ottengo:
Code:

 * samba -> start: smbd ...                                               [ !! ]
 * samba -> start: nmbd ...                                               [ ok ]
 * Error: stopping services (see system logs)
 * samba -> stop: smbd ...                                                [ ok ]
 * samba -> stop: nmbd ...                                                [ !! ]



guardando i log:
Code:

[2007/01/13 12:20:51, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(246)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.1.3 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2007/01/13 12:20:51, 3] nmbd/nmbd_sendannounce.c:send_host_announcement(208)
  send_host_announcement: type 19a03 for host GENTOOSERVER on subnet 192.168.1.3 for workgroup WORKGROUP
[2007/01/13 12:20:51, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2007/01/13 12:20:51, 3] nmbd/nmbd_sendannounce.c:send_host_announcement(208)
  send_host_announcement: type 0 for host GENTOOSERVER on subnet 192.168.1.3 for workgroup WORKGROUP
[2007/01/13 12:40:07, 0] nmbd/nmbd.c:main(727)
  Netbios nameserver version 3.0.22 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/01/13 12:40:07, 3] nmbd/nmbd.c:reload_nmbd_services(298)
  services not loaded
[2007/01/13 12:40:07, 2] nmbd/nmbd.c:main(751)
  Becoming a daemon.
[2007/01/13 12:40:07, 2] lib/tallocmsg.c:register_msg_pool_usage(61)
  Registered MSG_REQ_POOL_USAGE
[2007/01/13 12:40:07, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2007/01/13 12:40:07, 3] nmbd/nmbd.c:main(789)
  Opening sockets 137
[2007/01/13 12:40:07, 3] nmbd/nmbd.c:open_sockets(648)
  open_sockets: Broadcast sockets opened.
[2007/01/13 12:40:07, 2] lib/interface.c:interpret_interface(130)
  can't determine netmask for 192.168.1.
[2007/01/13 12:40:07, 0] lib/interface.c:load_interfaces(225)
  WARNING: no network interfaces found
[2007/01/13 12:40:07, 0] nmbd/nmbd_subnetdb.c:create_subnets(217)
  create_subnets: No local interfaces !

....


e questo è il mio smb.conf

Code:

[global]
netbios name = GentooServer
server string = Samba Server

#
# opzioni per la rete
#
hosts allow = 192.168.1. 127.
interfaces = 192.168.1.1/24
bind interfaces only = yes

....


credo quasi sicuramente sia un problema di configurazione ma non so come sistemare le cose...è cambiato qualcosa mettendo il router???prima funzionava tutto per bene....
grazie
duffimc
_________________
www.no1984.org (No al Trusted Computing)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum