Bug#479406: su fails for users with a POSIX script as their login shell

2009-07-22 Thread Nicolas François
On Mon, Jul 20, 2009 at 03:41:40PM +0100, stephane_chaze...@yahoo.fr wrote: > 2009-07-20 16:03:35 +0200, Nicolas François: > [...] > > login is the easiest, su is more complex because the behavior of > > "su -c " must be defined in this case. So I will just make it as > > "/bin/sh -c " > [..] > >

Bug#479406: su fails for users with a POSIX script as their login shell

2009-07-20 Thread Stephane CHAZELAS
2009-07-20 16:03:35 +0200, Nicolas François: [...] > login is the easiest, su is more complex because the behavior of > "su -c " must be defined in this case. So I will just make it as > "/bin/sh -c " [..] > + if (access (file, R_OK|X_OK) == 0) { > + /* > + * Assume th

Bug#479406: su fails for users with a POSIX script as their login shell

2009-07-20 Thread Nicolas François
tags 479406 pending thanks Hi, On Sun, Jul 19, 2009 at 08:58:49PM +0100, stephane_chaze...@yahoo.fr wrote: > 2009-07-18 21:26:56 +0200, Nicolas François: > > Ping > > Sorry, forgot to reply to your earlier email. No problem (it took me a year for the previous answer ;) > > > Are there other su

Bug#479406: su fails for users with a POSIX script as their login shell

2009-07-19 Thread Stephane Chazelas
2009-07-18 21:26:56 +0200, Nicolas François: > Ping Sorry, forgot to reply to your earlier email. > Any opinion on this? > > My current preference would be to close the bug. > It could also be tagged wontfix: I'm not sure the feature is that useful, > and switching to execlp/execvp/system could

Bug#479406: su fails for users with a POSIX script as their login shell

2009-07-18 Thread Nicolas François
Ping Any opinion on this? My current preference would be to close the bug. It could also be tagged wontfix: I'm not sure the feature is that useful, and switching to execlp/execvp/system could break existing behaviors. On Tue, May 12, 2009 at 12:43:41AM +0200, Nicolas François wrote: > > Hello,

Bug#479406: su fails for users with a POSIX script as their login shell

2009-05-11 Thread Nicolas François
severity 479406 wishlist thanks Hello, On Sun, May 04, 2008 at 05:46:49PM +0100, Stephane Chazelas wrote: > > (Note that the same applies to "login"). > > With this password entry: > > test:x:1000:1000:test:/:/tmp/x > > And /tmp/x being an executable file containing this only line: > echo tes

Bug#479406: su fails for users with a POSIX script as their login shell

2008-05-05 Thread Stephane Chazelas
BTW, this code (thanksfully disabled on Linux) is wrong: /* Linux handles #! in the kernel, and bash doesn't make sense of "#!" so it wouldn't work anyway... --marekm */ #ifndef __linux__ /* * It is perfectly OK to have a shell script for a login * she

Bug#479406: su fails for users with a POSIX script as their login shell

2008-05-04 Thread Stephane Chazelas
Package: login Version: 1:4.1.1-1 Severity: normal (Note that the same applies to "login"). With this password entry: test:x:1000:1000:test:/:/tmp/x And /tmp/x being an executable file containing this only line: echo test When logging in as user "test", or with su test you get: Cannot exe