sm-users AT lists.ibiblio.org
Subject: Sourcemage Users List
List archive
- From: Hamish Greig <hgreig AT bigpond.net.au>
- To: sm-users AT lists.ibiblio.org
- Subject: Re: [SM-Users] environment variables and preloads
- Date: Sun, 7 Dec 2003 14:30:07 +1100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, 7 Dec 2003 13:57, Andrew wrote:
> > Anyone see any simple flaw we overlooked in discussion on IRC ?
>
> how do you swap existing users over? Do we add some code in coreutils
> to modify /etc/profile ? Do we leave it there forever?
I had thought in the bash spell a simple
'if ! grep -q $blablabla /etc/profile ; then echo "bladybladyblabla"
>> /etc/profile; fi '
would set it up for all circumstances, an existing /etc/profile might have
old
vars set that the spell could remove also (JAVA_HOME, ANT_HOME,
LD_SO_PRELOAD, etc) or they could be removed by the user. (too much
automagicall manipulation of that file is a bad idea IMO)
Another option is to decide on a default set of entries, make them a file in
the bash spell, merge existing entries from the users original profile with
alias or INPUTRC tags but leaveout the JAVA_HOME (etc) exports.
At the same time a etc/skel dir (with or without modified entries to remove
*/sbin/ from PATH of regular users) would be populated with a users profile
also.
I guess merging alias' and INPUTRC entries into a new file (either
etc/profile
or another in the profile.d dir) would be the way to go, and even a
dummy /etc/profile.d/sys.profile could be made for SA to modify later(would
be a 0 byte file after original install)
Maybe I am blabbering...
Hamish
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/0p7E8fSufZR6424RAkXHAJ4jNt8Jef/LvyTqnwep1/RJC41FmQCfWVno
hbRh1LEF+K42TxtMaumngCU=
=mtZa
-----END PGP SIGNATURE-----
-
[SM-Users] environment variables and preloads,
Hamish Greig, 12/06/2003
-
Re: [SM-Users] environment variables and preloads,
Andrew, 12/06/2003
- Re: [SM-Users] environment variables and preloads, Hamish Greig, 12/06/2003
- Re: [SM-Users] environment variables and preloads, Jason Flatt, 12/06/2003
-
Re: [SM-Users] environment variables and preloads,
Eric Sandall, 12/07/2003
- Re: [SM-Users] environment variables and preloads, Hamish Greig, 12/07/2003
-
Re: [SM-Users] environment variables and preloads,
Andrew, 12/07/2003
- Re: [SM-Users] environment variables and preloads, Mads Laursen, 12/07/2003
- Re: [SM-Users] environment variables and preloads, Jose Bernardo Silva, 12/07/2003
-
Re: [SM-Users] environment variables and preloads,
Andrew, 12/06/2003
Archive powered by MHonArc 2.6.24.