Re: set env editor global

2004-01-13 Thread Malcolm Kay
On Tue, 13 Jan 2004 05:13, Charles Swiger wrote:
 On Jan 12, 2004, at 10:37 AM, fbsd_user wrote:
  On an new install with only an root account, I want to set the
  command line prompt prefix and the default editor for all new users
  and also the root account.
 
  What file do I put the 'set env' commands in to make this happen
  globally?

 Look at /etc/profile and /etc/csh.cshrc.

 [ Note that root has /bin/sh as it's shell, whereas normal users will
 be using csh by default.  This matters because different shells have
 different syntax and config file locations. ]

I believe your note is somewhat out of date. 4.x at least as far back as
4.1 has had /bin/csh (actually statically linked tcsh) as the default shell 
for root. (But you possibly still end up with sh if you boot into single 
user mode.)

I don't know about 5.x, but would be a little surprised if the default has
reverted to sh.

Malcolm Kay 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: set env editor global

2004-01-12 Thread Charles Swiger
On Jan 12, 2004, at 10:37 AM, fbsd_user wrote:
On an new install with only an root account, I want to set the
command line prompt prefix and the default editor for all new users 
and also the root account.

What file do I put the 'set env' commands in to make this happen
globally?
Look at /etc/profile and /etc/csh.cshrc.

[ Note that root has /bin/sh as it's shell, whereas normal users will 
be using csh by default.  This matters because different shells have 
different syntax and config file locations. ]

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: set env editor global

2004-01-12 Thread fbsd_user
I think you are incorrect about root using the sh shell as default.
 My new fresh install of 4.9 uses csh as the root default shell.
I did nothing to make this happen, that's the way the system
was installed from the cdrom install disk.

I am to only one on this stand-a-lone system and ps ax
command shows me as csh.

The /etc/csh.cshrc does set the defaults for new users
added to the system, but has no effect on root.
Had the edit root .cshrc file to set env defaults for root.

But thanks for the pointer to /etc/csh.cshrc



-Original Message-
From: Charles Swiger [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 1:44 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ORG
Subject: Re: set env editor global

On Jan 12, 2004, at 10:37 AM, fbsd_user wrote:
 On an new install with only an root account, I want to set the
 command line prompt prefix and the default editor for all new
users
 and also the root account.

 What file do I put the 'set env' commands in to make this happen
 globally?

Look at /etc/profile and /etc/csh.cshrc.

[ Note that root has /bin/sh as it's shell, whereas normal users
will
be using csh by default.  This matters because different shells have
different syntax and config file locations. ]

--
-Chuck

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]