Re: su -c

2006-03-15 Thread Dan Nicholson
On 3/15/06, Ken Moffat <[EMAIL PROTECTED]> wrote: > > One reason it isn't in the book is that snapshots aren't the same as > releases, despite the vagueness in the name of the tarball ;) I agree > it compiles ok and su -c seems to work, but I haven't got a

Re: su -c

2006-03-15 Thread Ken Moffat
06-March/000262.html Anyway, I'm playing around with it. -c is supported: One reason it isn't in the book is that snapshots aren't the same as releases, despite the vagueness in the name of the tarball ;) I agree it compiles ok and su -c seems to work, but I haven't go

Re: su -c

2006-03-15 Thread Dan Nicholson
--loginmake the shell a login shell -m, -p, --preserve-environmentdo not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd $ src/su -c "ls"

Re: su -c

2006-03-02 Thread Jeremy Huntwork
Gerard Beekmans wrote: So that means I'm on the brink of work, but am generally procrastinating to get anything done. That sounds like what's happening today. Can't seem to get started on my regular work. /me hands Gerard his last name. There ya go. Have some initiative. ;) -- JH -- http:/

Re: su -c

2006-03-02 Thread Gerard Beekmans
Richard A Downing wrote: See below. Suggest you hold off on changes 'til Monday. Even better then. Ag, I noticed you submitted a patch for 'su.' Thanks for your work but it seems we may not be using the patch if the new shadow package is released after the weekend as indicated by shadow's

Re: su -c

2006-03-02 Thread Ag Hatzim
Dan Nicholson([EMAIL PROTECTED])@Wed, Mar 01, 2006 at 11:56:09PM -0800: > > Ag, > > Is the patch you submitted just against current CVS? Seems like the > most changes are in login.c. Not that that's wrong. Just curious. > Sorry for the delay,Dan. Yes,i was working with the current cvs tree. A

Re: su -c

2006-03-02 Thread Richard A Downing
Gerard Beekmans wrote: >> Maybe someone should pull the CVS and build it to see if this issue is >> resolved. > > Depending on the outcome of this testing, we'll want to discuss now if > we want to downgrade shadow back to 4.0.13, or wait for its next release > if there is a known release date. >

Re: su -c

2006-03-01 Thread Dan Nicholson
On 3/1/06, Ag Hatzim <[EMAIL PROTECTED]> wrote: > > > > Backporting the cvs changes and creating a patch sounds like a viable > > option. > > > > Patch submitted. > Pathcing only the su.c it results to compilation erors so i had to include > other changes also. Ag, Is the patch you submitted just

Re: su -c

2006-03-01 Thread Ag Hatzim
Archaic([EMAIL PROTECTED])@Wed, Mar 01, 2006 at 03:54:37PM -0700: > On Wed, Mar 01, 2006 at 02:48:57PM -0700, Gerard Beekmans wrote: > > >Maybe someone should pull the CVS and build it to see if this issue is > > >resolved. > > > > Depending on the outcome of this testing, we'll want to discuss n

Re: su -c

2006-03-01 Thread Archaic
On Wed, Mar 01, 2006 at 02:48:57PM -0700, Gerard Beekmans wrote: > >Maybe someone should pull the CVS and build it to see if this issue is > >resolved. > > Depending on the outcome of this testing, we'll want to discuss now if > we want to downgrade shadow back to 4.0.13, or wait for its next re

Re: su -c

2006-03-01 Thread Ag Hatzim
Dan Nicholson([EMAIL PROTECTED])@Wed, Mar 01, 2006 at 12:49:19PM -0800: > > Maybe someone should pull the CVS and build it to see if this issue is > resolved. > Pulling the source from cvs,fixed the su issue. (~/LBFS/build_dir/shadow)su -c "touch /something" Password: (~

Re: su -c

2006-03-01 Thread Dan Nicholson
On 3/1/06, Dan Nicholson <[EMAIL PROTECTED]> wrote: > > http://cvs.pld.org.pl/shadow/src/su.c Something else I noticed in there is that there's a new switch (-p, I believe), that preserves the environment from the caller. If that means it inherits PATH, I will be a happy man. Seems that most of

Re: su -c

2006-03-01 Thread Gerard Beekmans
Maybe someone should pull the CVS and build it to see if this issue is resolved. Depending on the outcome of this testing, we'll want to discuss now if we want to downgrade shadow back to 4.0.13, or wait for its next release if there is a known release date. If downgrading back to 4.0.13 isn

Re: su -c

2006-03-01 Thread Gerard Beekmans
If this behaviour is 4.0.14 then you have a different one to me! I suspect this is 4.0.13 - and that does work. Thanks for that one. I thought I had version 4.0.14 installed on this system but obviously I was mistaken. In amidst the replies to this thread there was a message from Dan reporti

Re: su -c

2006-03-01 Thread Dan Nicholson
On 3/1/06, Richard A Downing <[EMAIL PROTECTED]> wrote: > > OK, on further investigation - this is a change since 4.0.13. Clearly > 4.0.14 is broken. I'll report it upstream. Richard, have a look at r1.62 which went in 4 days after version 4.0.14 was released. It's specifically for adding -c int

Re: su -c

2006-03-01 Thread Richard A Downing
ate it works as advertised: > > [EMAIL PROTECTED]:~$ touch /root/testfile > touch: cannot touch `/root/testfile': Permission denied > [EMAIL PROTECTED]:~$ su -c "touch /root/testfile" > Password: > > And '/root/testfile' is created after runni

Re: su -c

2006-03-01 Thread Richard A Downing
Richard A Downing wrote: > [EMAIL PROTECTED] wrote: >> Richard, >> >> I'm at work at the moment so can't reply on list. Shadow's 'su' is >> documented to support the '-c' parameter, at least in man/su/su.1.xml. >> I'm pre

Re: su -c

2006-03-01 Thread Chris Staub
CTED]:~$ touch /root/testfile touch: cannot touch `/root/testfile': Permission denied [EMAIL PROTECTED]:~$ su -c "touch /root/testfile" Password: And '/root/testfile' is created after running this. I believe "su" from the shadow package does work a

Re: su -c

2006-03-01 Thread Jeremy Huntwork
Chris Staub wrote: It has nothing to do with reordering the packages. LFS never has (AFAIK) installed the su from coreutils - that's what the "suppress_uptime_kill_su" patch is for. The su in the current version of shadow just doesn't support the -c option. Heh, Richard is getting flooded wi

Re: su -c

2006-03-01 Thread Chris Staub
Archaic wrote: I hit that very problem yesterday and your email prompted me to check it out. If you have followed the coreutils instructions for any book starting with 6.0 then you would have been suppressing the coreutils su and using the shadow one. Shadow-4.0.12's su accepts -c. I have no con

Re: su -c

2006-03-01 Thread Chris Staub
Archaic wrote: On Wed, Mar 01, 2006 at 10:27:12AM +, Richard A Downing wrote: I just built the cross-lfs book, and noticed that the version of su installed comes from shadow. This version doesn't support -c, which IMO makes it useless. The version built in coreutils is the one I'm used to.

Re: su -c

2006-03-01 Thread Bruce Dubbs
Richard A Downing wrote: > I just built the cross-lfs book, and noticed that the version of su > installed comes from shadow. This version doesn't support -c, which IMO > makes it useless. The version built in coreutils is the one I'm used to. > > Which version would SVN build? And after alphab

Re: su -c

2006-03-01 Thread Gerard Beekmans
Permission denied [EMAIL PROTECTED]:~$ su -c "touch /root/testfile" Password: And '/root/testfile' is created after running this. I believe "su" from the shadow package does work as expected, unless I totally missed something, Richard? -- Gerard Be

Re: su -c

2006-03-01 Thread Chris Staub
Richard A Downing wrote: I just built the cross-lfs book, and noticed that the version of su installed comes from shadow. This version doesn't support -c, which IMO makes it useless. The version built in coreutils is the one I'm used to. Which version would SVN build? And after alphaberin

Re: su -c

2006-03-01 Thread Dan Nicholson
On 3/1/06, Richard A Downing <[EMAIL PROTECTED]> wrote: > I just built the cross-lfs book, and noticed that the version of su > installed comes from shadow. This version doesn't support -c, which IMO > makes it useless. The version built in coreutils is the one I'm used to. The one from shadow h

Re: su -c

2006-03-01 Thread Richard A Downing
[EMAIL PROTECTED] wrote: > Richard, > > I'm at work at the moment so can't reply on list. Shadow's 'su' is > documented to support the '-c' parameter, at least in man/su/su.1.xml. > I'm pretty certain I've used 'su -c' before

Re: su -c

2006-03-01 Thread Archaic
On Wed, Mar 01, 2006 at 10:27:12AM +, Richard A Downing wrote: > I just built the cross-lfs book, and noticed that the version of su > installed comes from shadow. This version doesn't support -c, which IMO > makes it useless. The version built in coreutils is the one I'm used to. I hit that

su -c

2006-03-01 Thread Richard A Downing
I just built the cross-lfs book, and noticed that the version of su installed comes from shadow. This version doesn't support -c, which IMO makes it useless. The version built in coreutils is the one I'm used to. Which version would SVN build? And after alphabering it? I never build PAM, s