Re: Is it me or is it sudo?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/28/2012 04:27 PM, Reindl Harald wrote:

the promt in linux supports colors since long ago
which is smarter than guess by error messages that
it was a root command happily with not enough
permissions

/root/.basrhc (red prompt):
PS1="\[\033[1;31m\][\u@\h:\w]$\[\033[0m\] "

~/.bashrc (green prompt)
PS1="\[\033[1;32m\][\u@\h:\w]$\[\033[0m\] "
______________________________

i use the follwoing schema since many years

RED:       root on production servers
ORANGE:    root on my machines
YELOW:     root on backup.machines
GREEN:     my user
LIGHTBLUE: buildusers
DARKBLUE:  vm hosts

no, i have no good documentation, i googled around
for colors i searched :-)

I'm aware of BASH's use of colors, but, I'm not always at a console that displays colors. (I've not found an Android app that will display them on my Galaxy Tab for instance.)

Besides, I think a healthy dose of paranoia is not a bad thing. If it works for you, that's great. I've found that it's not always good to rely on things like that if you have to access consoles from odd devices like mobile phones.



--

Mark Haney
Software Developer/Consultant
AB Emblem
markh@xxxxxxxxxxxx
Linux marius.homelinux 3.3.0-4.fc16.x86_64 GNU/Linux
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux