LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-15-2002, 11:38 PM   #1
PhoenixIce
LQ Newbie
 
Registered: Dec 2002
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Question su colors


Not a major issue, but something that has become a bit of an annoyance with me.... What i am trying to accomplish is to maintain "ls" colorization when i "su" to another user... I've tried putting the "eval `dircolors -b`" command (among others) into many of the differant scripts (profile, .bash-profile, etc) but nothing seems to make it stick. I know that all i have to do is type "alias ls='/bin/ls --color'" after suing over, but i don't feel that i should have to :-p
Does anyone know a way to fix this (minor) dillema?? Thanks


-PhoenixIce
 
Old 12-16-2002, 12:32 AM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
From the man page for "su", you could try using the " - " argument before the username.

"The optional argument - may be used to provide an environment similiar to what
the user would expect had the user logged in directly."

I would think that might allow your profile changes to take effect for the shell.
 
Old 12-16-2002, 02:12 PM   #3
PhoenixIce
LQ Newbie
 
Registered: Dec 2002
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Heh... i knew there had to be a simple answer That worked great, thanks

-PhIce
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
colors? kaens DamnSmallLinux 5 02-10-2005 02:34 AM
vi colors prkn8tr Linux - Software 6 06-03-2004 12:43 AM
colors devit Slackware 1 03-12-2004 07:44 AM
colors? there is no god Linux - Newbie 3 08-18-2003 08:04 PM
Colors jeremy LQ Suggestions & Feedback 4 06-26-2003 04:27 AM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration