Message-ID: <3A25EB27.C30432BF@worldnet.att.net>
Date: Wed, 29 Nov 2000 23:52:39 -0600
From: Ahbaid Gaffoor
Message-ID: <3A25F38A.124E760D@turk.net>
Date: Thu, 30 Nov 2000 08:28:26 +0200
From: Togan Muftuoglu
If I setup a user with bash as their default shell:
1) Where would I place commands I need run for every user upon login? /etc/profile ?
/etc/profile.local
2) Where would I place commands specific to a user? ~someuser/.profile ?
Does it vary based on the shell?
~someuser/.bashrc probably
thanks.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- Togan Muftuoglu toganm@turk.net 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail. So it is virus free
Message-ID: <3A25F8AD.D722FF49@faw.uni-ulm.de>
Date: Thu, 30 Nov 2000 07:50:21 +0100
From: Ralf Corsepius
Ahbaid Gaffoor wrote:
If I setup a user with bash as their default shell:
1) Where would I place commands I need run for every user upon login? /etc/profile ?
/etc/profile.local
2) Where would I place commands specific to a user? ~someuser/.profile ?
~someuser/.bashrc
As this file's name says, ~/.bashrc is proprietary to bash. A more portable solution is using ~/.profile. On a singel-seat desktop or linux-only network the difference doesn't matter much, but it does matter significantly if being in a heterogenious network comprising systems where bash might not be available and if /bin/sh is used as login shell.
Does it vary based on the shell? probably It does (cf. above).
You also might want to read man bash (section INVOCATION). Regards, Ralf
Message-ID: <3A25FBD4.E275BB67@turk.net>
Date: Thu, 30 Nov 2000 09:03:48 +0200
From: Togan Muftuoglu
2) Where would I place commands specific to a user? ~someuser/.profile ?
~someuser/.bashrc
As this file's name says, ~/.bashrc is proprietary to bash.
A more portable solution is using ~/.profile.
<p>>
On a singel-seat desktop or linux-only network the difference doesn't matter much, but it does matter significantly if being in a heterogenious network comprising systems where bash might not be available and if /bin/sh is used as login shell.
If other than bash are used yes if Bash is used then
From default .bashrc of SuSE
# Bash knows 3 diferent shells: normal shell, interactive shell, login shell. # ~/.bashrc is read for interactive shells and ~/.profile is read for login # shells. We just let ~/.profile also read ~/.bashrc and put everything in # ~/.bashrc. So if the setup is for bash then this is the correct place to place user specific things as I understand it <p><p> -- Togan Muftuoglu toganm@turk.net 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail. So it is virus free
From: Jerry Kreps
From/etc/profile: # /etc/profile
# PLEASE DON'T CHANGE /etc/profile. Chances are that your changes will # be lost during the next upgrade. # Use /etc/profile.local for your favourite global aliases, your VISUAL and # EDITOR variables, etc ...
From ~/.bashrc # Bash knows 3 diferent shells: normal shell, interactive shell, login shell. # ~/.bashrc is read for interactive shells and ~/.profile is read for login # shells. We just let ~/.profile also read ~/.bashrc and put everything in # ~/.bashrc.
<p><p>On Thursday 30 November 2000 01:03, Togan Muftuoglu wrote:
Ralf Corsepius wrote:
2) Where would I place commands specific to a user? ~someuser/.profile ?
~someuser/.bashrc
As this file's name says, ~/.bashrc is proprietary to bash.
A more portable solution is using ~/.profile.
On a singel-seat desktop or linux-only network the difference doesn't matter much, but it does matter significantly if being in a heterogenious network comprising systems where bash might not be available and if /bin/sh is used as login shell.
If other than bash are used yes if Bash is used then
From default .bashrc of SuSE
# Bash knows 3 diferent shells: normal shell, interactive shell, login shell. # ~/.bashrc is read for interactive shells and ~/.profile is read for login # shells. We just let ~/.profile also read ~/.bashrc and put everything in # ~/.bashrc.
So if the setup is for bash then this is the correct place to place user specific things as I understand it
-- Scientific theories, according to Sir Karl Popper, can be "falsified," or proven wrong, by experiment. Unscientific theories -Marxist dialectical history and Freudian psychology were Popper's favorites- are formed in such a way that they cannot be falsified by data.
From: Cliff Sarginson
participants (5)
-
ahbaidg@worldnet.att.net
-
cliff@raggedclown.net
-
corsepiu@faw.uni-ulm.de
-
jerrykreps@jlkreps.net
-
toganm@turk.net