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