hi i've got the the problem that i can't su -l <someone> an my client machine. $ su -l admin su: no directory i can login locally, login via ssh, su -l root without any problems. SERVER: FreeBSD4.8 stabel (~ 1 week ago last cvs update) runs NIS, NFS, DNS, FTP, SAMBA, NTP CLIENT> FreeBSD5.1 release (rebuild kernel using KERNCONF=SMP) i didn't had problems with have no problems with the following clients: FreeBSD 5.0 (GENERIC), OpenBSD 3.2/3.3, Linux (Suse 8.1/8.2) what do i miss? below you see some infos from my client machine. cheers $ ls -ld / drwxr-xr-x 17 root wheel 512 Jun 20 22:46 / $ ls -ld /home lrwxr-xr-x 1 root wheel 9 Jun 20 22:46 /home -> /usr/home $ ls -ld /usr drwxr-xr-x 19 root wheel 512 Jun 20 19:04 /usr $ ls -ld /usr/home drwxr-xr-x 11 root wheel 512 Jun 17 11:54 /usr/home $ ls -l /usr/home/admin total 11 drwxrwx--- 17 admin core 1024 Jun 20 17:56 admin $ ypcat passwd | grep admin admin:<snip>:<snip>:<snip>:Administrator:/home/admin:/bin/sh $ ls -l /bin/sh -r-xr-xr-x 1 root wheel 740848 Jun 5 03:54 /bin/sh $ mount /dev/ad0s2a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s2e on /tmp (ufs, local, soft-updates) /dev/ad0s2f on /usr (ufs, local, soft-updates) /dev/ad0s2d on /var (ufs, local, soft-updates) frigi:/home on /usr/home (nfs, nodev, nosuid)
try su - admin At 11:45 PM 6/20/2003 +0200, llx wrote:>hi > >i've got the the problem that i can't su -l <someone> an my client machine. > $ su -l admin > su: no directory >i can login locally, login via ssh, su -l root without any problems. > >SERVER: FreeBSD4.8 stabel (~ 1 week ago last cvs update) runs >NIS, NFS, DNS, FTP, SAMBA, NTP >CLIENT> FreeBSD5.1 release (rebuild kernel using KERNCONF=SMP) > >i didn't had problems with have no problems with the following clients: >FreeBSD 5.0 (GENERIC), OpenBSD 3.2/3.3, Linux (Suse 8.1/8.2) > >what do i miss? below you see some infos from my client machine. > >cheers > >$ ls -ld / >drwxr-xr-x 17 root wheel 512 Jun 20 22:46 / >$ ls -ld /home >lrwxr-xr-x 1 root wheel 9 Jun 20 22:46 /home -> /usr/home >$ ls -ld /usr >drwxr-xr-x 19 root wheel 512 Jun 20 19:04 /usr >$ ls -ld /usr/home >drwxr-xr-x 11 root wheel 512 Jun 17 11:54 /usr/home >$ ls -l /usr/home/admin >total 11 >drwxrwx--- 17 admin core 1024 Jun 20 17:56 admin >$ ypcat passwd | grep admin >admin:<snip>:<snip>:<snip>:Administrator:/home/admin:/bin/sh >$ ls -l /bin/sh >-r-xr-xr-x 1 root wheel 740848 Jun 5 03:54 /bin/sh >$ mount >/dev/ad0s2a on / (ufs, local) >devfs on /dev (devfs, local) >/dev/ad0s2e on /tmp (ufs, local, soft-updates) >/dev/ad0s2f on /usr (ufs, local, soft-updates) >/dev/ad0s2d on /var (ufs, local, soft-updates) >frigi:/home on /usr/home (nfs, nodev, nosuid) > > >_______________________________________________ >freebsd-stable@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-stable >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
Hi, llx wrote:> hi > > i've got the the problem that i can't su -l <someone> an my client machine. > $ su -l admin > su: no directory > i can login locally, login via ssh, su -l root without any problems. > [...] > $ ls -l /usr/home/admin > total 11 > drwxrwx--- 17 admin core 1024 Jun 20 17:56 adminIs the missing 'd' option in the command above just a typo in your email, or do you really have an 'admin' directory in the 'admin' home directory? What does ls -ld /usr/home/admin say, especially with regard to permissions? Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net
i've some more infos: as i wrote i can't su - <user> when the user's home is mounted over nfs. this happens when the users home perms are set to 770. as soon as i change the users perms to 771 i can use su - <user>. su <user> also works with 770. it seems that root need to have at least 'x' perm on the users home directory. as an alternative to 771 i cant export the users home with maproot=root grr.. why is this nessecery in 5.1? On Friday 20 June 2003 23:45, llx wrote:> hi > > i've got the the problem that i can't su -l <someone> an my client machine. > $ su -l admin > su: no directory > i can login locally, login via ssh, su -l root without any problems. > > SERVER: FreeBSD4.8 stabel (~ 1 week ago last cvs update) runs > NIS, NFS, DNS, FTP, SAMBA, NTP > CLIENT> FreeBSD5.1 release (rebuild kernel using KERNCONF=SMP) > > i didn't had problems with have no problems with the following clients: > FreeBSD 5.0 (GENERIC), OpenBSD 3.2/3.3, Linux (Suse 8.1/8.2) > > what do i miss? below you see some infos from my client machine. > > cheers > > $ ls -ld / > drwxr-xr-x 17 root wheel 512 Jun 20 22:46 / > $ ls -ld /home > lrwxr-xr-x 1 root wheel 9 Jun 20 22:46 /home -> /usr/home > $ ls -ld /usr > drwxr-xr-x 19 root wheel 512 Jun 20 19:04 /usr > $ ls -ld /usr/home > drwxr-xr-x 11 root wheel 512 Jun 17 11:54 /usr/home > $ ls -l /usr/home/admin > total 11 > drwxrwx--- 17 admin core 1024 Jun 20 17:56 admin > $ ypcat passwd | grep admin > admin:<snip>:<snip>:<snip>:Administrator:/home/admin:/bin/sh > $ ls -l /bin/sh > -r-xr-xr-x 1 root wheel 740848 Jun 5 03:54 /bin/sh > $ mount > /dev/ad0s2a on / (ufs, local) > devfs on /dev (devfs, local) > /dev/ad0s2e on /tmp (ufs, local, soft-updates) > /dev/ad0s2f on /usr (ufs, local, soft-updates) > /dev/ad0s2d on /var (ufs, local, soft-updates) > frigi:/home on /usr/home (nfs, nodev, nosuid) > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"