Re: Konsole ls colors when root



On 2006-07-17, heavytull wrote:
when I start my linux box I login as a common user or root.
under the X in a shell or directly under the VT when I type ls I get
the results in color and it is very nice!

but when still under the same session I login as another user by
typing su "usename" ls won't output with colors anymore :((

i even tried to copy the /etc/DIR_COLORS in the user home directory,
that doesn't change anything

The actual probem is that su does not load the aliases per user.

Use:

su - "username"

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.



Relevant Pages

  • Re: Konsole ls colors when root
    ... heavytull wrote: ... under the X in a shell or directly under the VT when I type ls I get ... do this as root? ... How about hitting the man pages for 'adduser', ...
    (alt.os.linux)
  • Re: Select a specific instance of Access
    ... Set rsR = dbD.OpenRecordset ... command to open another database (I use the shell command to automate ... the username and password since we are on a workgroup security file - ...
    (microsoft.public.access.modulesdaovba)
  • Re: ssh related
    ... in my case username is vittall and ip address ... or use shell aliases or shell functions, ... username to use for which host. ... should have a local domain, say example.com, and the host is then called ...
    (comp.unix.shell)
  • Re: just a quickie please
    ... I just tried another users account and it's able to send. ... The big difference with this one just seemed to be that FreeBSD complained about an 18 character username. ... I set her shell as 'mail-only' even though no ...
    (freebsd-isp)
  • Re: root Wont Change My Shell To bash
    ... >> I'm on a Solaris 9 system with my shell set to csh. ... > I've found sometimes just sending the system admin the commands to type ... > chown -R username * ...
    (comp.unix.solaris)