Hallo, one of my colleagues has problems with Samba (V 3.0.32). Samba runs on a Linux server (Slackware 2.6.29.6), some clients are attached via a Windows Terminalserver. Wiederum war auf dem Windows-TS 1(!) User in die Arktur3.6 -Dom?ne f?r ca 20 Minuten angemeldet und hat dabei ca 4400 Meldungen in die /var/log/messages geschrieben. Diese beginnen mit: (my bad translation: 1 client was attached, it produced about 4400 messages within 20 minutes) Aug 31 10:09:21 Server smbd[20793]: [2009/08/31 10:09:21, 0] lib/debug.c: reopen_logs(597) Aug 31 10:09:21 Server smbd[20793]: Unable to open new log file /var/log/ samba/schulung.log: Permission denied Aug 31 10:09:28 Server smbd[20793]: [2009/08/31 10:09:28, 0] smbd/service.c: set_current_service(49) Aug 31 10:09:28 Server smbd[20793]: chdir (/home/adm) failed --------------------------------- a) why can't samba open this one file (but all other files in "/var/log/ samba", for the clients which are connected directly to the server) The file exists; root:root, 644 b) which machine or program asks "chdir /home/adm"? That's a DOS command, no Linux command. "/home/adm" exists, it's a Samba share. Viele Gruesse! Helmut
> Aug 31 10:09:21 Server smbd[20793]: Unable to open new log file /var/log/ > samba/schulung.log: Permission denied > Aug 31 10:09:28 Server smbd[20793]: [2009/08/31 10:09:28, 0] smbd/service.c: > set_current_service(49) > Aug 31 10:09:28 Server smbd[20793]: chdir (/home/adm) failed > > > --------------------------------- > > a) why can't samba open this one file (but all other files in "/var/log/ > samba", for the clients which are connected directly to the server) > The file exists; root:root, 644It would seem that if only root can write to the log file, and Samba doesn't have access, then Samba must not be root. Try deleting the file (if it exists) and set the folder to 777. Run Samba, then look for the log file and see who owns it. Probably the user trying to connect.> b) which machine or program asks "chdir /home/adm"? That's a DOS > command, no Linux command. > > "/home/adm" exists, it's a Samba share.Yes, it is a DOS command because you're receiving commands from a fancy version of DOS (i.e. Windows.) It's not a command, it's the name of the SMB/CIFS operation Samba is trying to perform. My guess is that whichever user Samba is running as does not have access to /home/adm. chmod a+x /home/adm should fix the problem ;-) Cheers, Adam.
2009/8/31 Helmut Hullen <Hullen at t-online.de>: [...]> Aug 31 10:09:28 Server smbd[20793]: ? chdir (/home/adm) failed[...]> b) which machine or program asks "chdir /home/adm"? That's a DOS > command, no Linux command.There is a Unix system call called chdir(). I suspect that this is what smbd is referring to.> "/home/adm" exists, it's a Samba share.What user is smbd running as? (ps aux | grep smbd) Who owns /home/adm and what are the permissions? -- Michael Wood <esiotrot at gmail.com>