Re: [Samba] Samba wants chdir
Hallo, Michael, Du meintest am 01.09.09: 2009/8/31 Helmut Hullen hul...@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. Hmmm - never seen. But that's no proof of inexistence. strings /usr/sbin/smbd | grep chdir tells make_connection_with_chdir chdir (%s) failed make_connection_with_chdir Failed to chdir to / on chroot to %s And there is the above error message - ok. /home/adm exists, it's a Samba share. What user is smbd running as? (ps aux | grep smbd) Owner: root Who owns /home/adm and what are the permissions? /home: root:root 755 /home/adm: adm:lehrer 755 Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba wants chdir
Hello Helmut :) 2009/9/1 Helmut Hullen hul...@t-online.de: Hallo, Michael, Du meintest am 01.09.09: 2009/8/31 Helmut Hullen hul...@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. Hmmm - never seen. But that's no proof of inexistence. Well on Debian and Ubuntu the manpage is in the manpages-dev package: $ man -w chdir /usr/share/man/man2/chdir.2.gz $ dpkg -S /usr/share/man/man2/chdir.2.gz manpages-dev: /usr/share/man/man2/chdir.2.gz $ man 2 chdir CHDIR(2) Linux Programmer's Manual CHDIR(2) NAME chdir, fchdir - change working directory SYNOPSIS #include unistd.h int chdir(const char *path); int fchdir(int fd); [...] CONFORMING TO SVr4, 4.4BSD, POSIX.1-2001. [...] strings /usr/sbin/smbd | grep chdir tells make_connection_with_chdir chdir (%s) failed make_connection_with_chdir Failed to chdir to / on chroot to %s And there is the above error message - ok. /home/adm exists, it's a Samba share. What user is smbd running as? (ps aux | grep smbd) Owner: root Who owns /home/adm and what are the permissions? /home: root:root 755 /home/adm: adm:lehrer 755 OK, that's strange. Anybody should be able to change directory to /home/adm, unless there's something else preventing it, like ACLs or SELinux or Samba is chrooted so it's looking for /path/to/chroot/home/adm instead of /home/adm. -- Michael Wood esiot...@gmail.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba wants chdir
2009/8/31 Helmut Hullen hul...@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 esiot...@gmail.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba wants chdir
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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba wants chdir
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 It 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. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba