Re: About chapters 6.5 and 6.6

2005-12-29 Thread Dan Nicholson
On 12/29/05, Miguel Bazdresch <[EMAIL PROTECTED]> wrote: > * Dan Nicholson <[EMAIL PROTECTED]> [2005-12-20 16:11]: > > However, that prompts for the password every time you invoke su. For > > not using passwords, sudo might be the way to go. > > man suauth > > Sorry for the late response; I'm catc

Re: About chapters 6.5 and 6.6

2005-12-29 Thread Miguel Bazdresch
* Dan Nicholson <[EMAIL PROTECTED]> [2005-12-20 16:11]: > However, that prompts for the password every time you invoke su. For > not using passwords, sudo might be the way to go. man suauth Sorry for the late response; I'm catching up on a load of emails. -- Miguel Bazdresch http://thewizardst

Re: About chapters 6.5 and 6.6

2005-12-21 Thread Jim Gifford
In my testing with Cross-LFS, I have found that this works echo "dummy1:x:1000:" >> /etc/group echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd cd tests su dummy -c "sh run-all" sed -i '/dummy/d' /etc/passwd /etc/group rm /tmp/* -- -- [EMAIL PROTECTED] [EMAIL PROTECTED] LFS User # 2577

Re: About chapters 6.5 and 6.6

2005-12-21 Thread Richard A Downing
On Tue, 20 Dec 2005 16:39:25 -0500 Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > Richard A Downing wrote: > > sudo - nice package, solves the problem of scripting su. It's not > > in BLFS (but should be), however it's a straight CMMI package. > > Yes it is. :D > > Recent addition. > So it is.

Re: About chapters 6.5 and 6.6

2005-12-20 Thread break thestate
On 12/20/05, Tyler Packer <[EMAIL PROTECTED]> wrote: > Yes you can disable the password prompt in sudo. Less dangerous if you > configure sudo to only allow specific commands. In your sudoers file > you can specify specific commands and only allow certain users to > execute those specific comma

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Randy McMurchy
Randy McMurchy wrote these words on 12/20/05 15:57 CST: > So, only if the root account is compromised can it be dangerous. Again, stupid tripe pouring off my fingers. I never thought that if some unprivileged user (identified in the sudoers file as having root access) leaves his terminal, for jus

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Jeremy Huntwork
Randy McMurchy wrote: > So, because I've never needed to do it, I just naturally thought > nobody else did. What a dumb thought, huh? No problem. :) I probably never would have known it either if I hadn't gotten so many requests to automate my build process for the LiveCD. -- JH -- http://linux

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Tyler Packer
Yes you can disable the password prompt in sudo. Less dangerous if you configure sudo to only allow specific commands. In your sudoers file you can specify specific commands and only allow certain users to execute those specific commands without a password. You can also use wildcards in those

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Randy McMurchy
Jeremy Huntwork wrote these words on 12/20/05 16:01 CST: > The discussion isn't about whether you *should* build as a different > user or not, but how to switch users while automating. Since the LFS > book suggests that you build as 'lfs' in the first section, and you > *have* to chroot in the sec

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Jeremy Huntwork
Randy McMurchy wrote: > So, only if the root account is compromised can it be dangerous. > And, if root is compromised, you're already in big trouble. Not quite. Scenario: User is given access via sudo to run all root commands but without requiring a password. User logs in to machine. User gets

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Jeremy Huntwork
Randy McMurchy wrote: > Isn't this discussion somewhat moot (unless it is pertaining to > building BLFS packages) as in LFS you are either: > > 1) the LFS user (no harm can be done) > or > 2) the root user in a chroot environment (no harm can be done). The discussion isn't about whether you *shou

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Randy McMurchy
Dan Nicholson wrote these words on 12/20/05 13:54 CST: > I'm no sudo expert, but I think there's is a way to disable the > password prompt. Obviously, that's dangerous, though. Not *that* dangerous. And can only be considered remotely dangerous if you have a weak root password on your system. Di

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Randy McMurchy
Dan Nicholson wrote these words on 12/20/05 13:40 CST: > I personally build as root to avoid the user switching despite the bad > things that can happen. I just cross my fingers and hope that my > scripts don't have errors in them. Package management can give some > piece of mind in any case, bu

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Richard A Downing
On Tue, 20 Dec 2005 11:54:27 -0800 Dan Nicholson <[EMAIL PROTECTED]> wrote: > On 12/20/05, Michiel Faber <[EMAIL PROTECTED]> wrote: > > I indeed tried su(do) but i didn't wan't the "asking for password" > > stuff. > > I'm no sudo expert, but I think there's is a way to disable the > password prom

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Jeremy Huntwork
Richard A Downing wrote: > sudo - nice package, solves the problem of scripting su. It's not in > BLFS (but should be), however it's a straight CMMI package. Yes it is. :D Recent addition. http://www.linuxfromscratch.org/blfs/view/svn/postlfs/sudo.html -- JH -- http://linuxfromscratch.org/mai

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Richard A Downing
On Tue, 20 Dec 2005 20:26:59 +0100 Michiel Faber <[EMAIL PROTECTED]> wrote: > Dan Nicholson schreef: > > >On 12/20/05, Richard A Downing <[EMAIL PROTECTED]> wrote: > > > > > >>On Tue, 20 Dec 2005 12:44:16 - (GMT) > >>"S. Anthony Sequeira" <[EMAIL PROTECTED]> wrote: > >> > >> > >> > >>>O

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Dan Nicholson
On 12/20/05, Michiel Faber <[EMAIL PROTECTED]> wrote: > I indeed tried su(do) but i didn't wan't the "asking for password" > stuff. I'm no sudo expert, but I think there's is a way to disable the password prompt. Obviously, that's dangerous, though. -- Dan -- http://linuxfromscratch.org/mailman/

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Michiel Faber
Dan Nicholson schreef: On 12/20/05, Michiel Faber <[EMAIL PROTECTED]> wrote: I start writing scripts myself, but how can i script things if first a user has to do something and later root. I.e as user i do "./configure & make", but i have to do "make install" as root. How you guys solve thi

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Dan Nicholson
On 12/20/05, Michiel Faber <[EMAIL PROTECTED]> wrote: > I start writing scripts myself, but how can i script things if first a > user has to do something and later root. > I.e as user i do "./configure & make", but i have to do "make install" > as root. > > How you guys solve this? Of course i can

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Jeremy Huntwork
Michiel Faber wrote: > How you guys solve this? Of course i can do everything as root, but i > learned; " only use root when you have to" man su man chroot -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the ab

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Michiel Faber
Dan Nicholson schreef: On 12/20/05, Richard A Downing <[EMAIL PROTECTED]> wrote: On Tue, 20 Dec 2005 12:44:16 - (GMT) "S. Anthony Sequeira" <[EMAIL PROTECTED]> wrote: On Tue, December 20, 2005 11:48, Jeremy Byron said: Dan Nicholson wrote: Yep, no reason why not.

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Dan Nicholson
On 12/20/05, Richard A Downing <[EMAIL PROTECTED]> wrote: > On Tue, 20 Dec 2005 12:44:16 - (GMT) > "S. Anthony Sequeira" <[EMAIL PROTECTED]> wrote: > > > > > On Tue, December 20, 2005 11:48, Jeremy Byron said: > > > Dan Nicholson wrote: > > >> Yep, no reason why not. You can script everything

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Richard A Downing
On Tue, 20 Dec 2005 12:44:16 - (GMT) "S. Anthony Sequeira" <[EMAIL PROTECTED]> wrote: > > On Tue, December 20, 2005 11:48, Jeremy Byron said: > > Dan Nicholson wrote: > >> Yep, no reason why not. You can script everything if you want. In > >> fact, I doubt there are any veteran LFSers who d

Re: About chapters 6.5 and 6.6

2005-12-20 Thread S. Anthony Sequeira
On Tue, December 20, 2005 11:48, Jeremy Byron said: > Dan Nicholson wrote: >> Yep, no reason why not. You can script everything if you want. In >> fact, I doubt there are any veteran LFSers who don't script the >> build. > [...] > Long story short: I may be an idiot, but there's at least one ve

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Jeremy Byron
Dan Nicholson wrote: Yep, no reason why not. You can script everything if you want. In fact, I doubt there are any veteran LFSers who don't script the build. I've built LFS dozens of times since I heard of it at v3-ish so I guess I qualify as a veteran LFSer. I started writing scripts to do

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Andrew Benton
Stephen Liu wrote: Hi folks, About chapters 6.5. Creating Directories 6.6. Creating Essential Symlinks http://www.linuxfromscratch.org/lfs/view/stable/chapter06/creatingdirs.html instead of typing all command lines stipulated there, can I first create following simple script:- #! /bin/sh Does

Re: About chapters 6.5 and 6.6

2005-12-20 Thread Dan Nicholson
On 12/20/05, Stephen Liu <[EMAIL PROTECTED]> wrote: > copy mkdirsymlink.sh to sources/ on the HD first > > after chroot, run > # ./sources/mkdirsmlink.sh Yep, no reason why not. You can script everything if you want. In fact, I doubt there are any veteran LFSers who don't script the build. -- D

About chapters 6.5 and 6.6

2005-12-20 Thread Stephen Liu
Hi folks, About chapters 6.5. Creating Directories 6.6. Creating Essential Symlinks http://www.linuxfromscratch.org/lfs/view/stable/chapter06/creatingdirs.html instead of typing all command lines stipulated there, can I first create following simple script:- #! /bin/sh # Creating Directories in