Date: Wed, 25 Oct 2006 12:20:04 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-questions@freebsd.org Subject: Re: Bug with tcsh? : if evaluating true instead of false Message-ID: <453FB8E4.3040507@u.washington.edu> In-Reply-To: <226ae0c60610250940h43c1bea8o77326728f15ed058@mail.gmail.com> References: <226ae0c60610250940h43c1bea8o77326728f15ed058@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Robillard wrote: >> Ok, so I tried to make a simple script to add users so I wouldn't have >> to type in groups/pw over and over again... the problem is that it's not >> behaving like it should =o. > > [ ...8<... Removed a bunch of lines ...8<... ] > > IMHO, if you need to script something, use /bin/sh. It's the standard > shell interpreter on all flavors of UNIX and Linux (except maybe MacOS > X). All of the rc scripts are written with it. So why bother with > another shell? > > Here's an interesting read on the topic: > http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ > BTW, Tom Christiansen who wrote this is co-author of "Programming > Perl" from O'Reilly. > > So, Garret, if you need help with this, I have a /bin/sh version of > the script you're trying to do. Just drop me a line and I'll send it > to you. > > Just my two cents :) > > David Also, another thing is that a lot of what I was trying to do was not only add user classes, but also restrict users from accessing my server unless they were in the wheel group. Got that done with /etc/login.access by adding: - -ALL except wheel:ALL Now since I mentioned it though I was wondering, does this create issues for secondary daemon accounts (www, mysql, etc)? Thanks! - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFP7jj6CkrZkzMC68RAuldAKCDmbEv4P94VUeIrfohLKIkcY1QlQCeKmz2 OCCVA0n6utl0J8AxoIxMWLA= =Nufx -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?453FB8E4.3040507>