Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemwide aliases?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Spacemage
n00b
n00b


Joined: 13 Jan 2003
Posts: 26
Location: Germany

PostPosted: Sun Jan 19, 2003 12:52 am    Post subject: Systemwide aliases? Reply with quote

Where can I set systemwide aliases for all users?
it is kind of annoying that gentoo does not use color if you type the ls command...
and it is annoying to reset aliases for it everytime too...
Back to top
View user's profile Send private message
Joffer
Guru
Guru


Joined: 10 Sep 2002
Posts: 585
Location: Arendal, Norway

PostPosted: Sun Jan 19, 2003 1:18 am    Post subject: Reply with quote

/etc/profile ?
Back to top
View user's profile Send private message
zepar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2002
Posts: 107

PostPosted: Sun Jan 19, 2003 1:48 am    Post subject: Reply with quote

copy .bash_profile and .bashrc from /etc/skel to /root and users homedir
Back to top
View user's profile Send private message
Spacemage
n00b
n00b


Joined: 13 Jan 2003
Posts: 26
Location: Germany

PostPosted: Sun Jan 19, 2003 2:33 am    Post subject: Reply with quote

Thank you.
/etc/profile seems not to work, maybe I have to reboot for that or something
the other is not realy systemwide but it works...
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sun Jan 19, 2003 5:06 am    Post subject: Reply with quote

Moving to OTG.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
doug-x07
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2002
Posts: 122
Location: Paris, France

PostPosted: Sun Jan 19, 2003 11:28 am    Post subject: Reply with quote

I don't know what context you are using your box for, but it's considered a major security hole running aliases on your root account. It make's it very easy for someone to run arbitrary code whenever root logs on and redefine commands.
_________________
#! /usr/bin/perl
if( @first != $succeed ) {
post { $question->forum && eval '$answers' };
try { $again } catch { $problem && $resolve };
bless $posters; }
Back to top
View user's profile Send private message
Spacemage
n00b
n00b


Joined: 13 Jan 2003
Posts: 26
Location: Germany

PostPosted: Sun Jan 19, 2003 12:57 pm    Post subject: Reply with quote

oh that is ok it is just my homelan where all people are trusted because when they mess something up I am able to hit them with something big and heavy :wink:
And they know my root password anyway, at least if they can remember it...
But it is nice to know about that securityhole :twisted:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum