VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Having colors in bash  (Read 1069 times)

marcus

  • Member
  • *
  • Posts: 19
Having colors in bash
« on: September 24, 2007, 06:53:20 am »

I made a reset with VASM and the bash shell in the terminal doesn't have colors anymore, nor does it show  the working directory and other useful stuff. How can I restore that?
Thanks.
Logged

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: Having colors in bash
« Reply #1 on: September 24, 2007, 11:58:02 am »

I think your problem is related to a permissions problem with /etc/skel which is what's used to 'reset' users folders/settings/configs/etc.  As posted by urbanvoodo in this thread (http://www.vectorlinux.com/forum2/index.php?topic=3422.msg24479#msg24479), you should adjust the permissions of /etc/skel so that group and others can have read access (recursively).  Once you've changed those permissions you should try the 'reset' method again via VASM.

Quote
i checked the /etc/skel folder through thunar(root) and it turns out that all files and folders are set to the following permissions:

owner : root
Access : read/write

group : root
Access : none

others : none

I changed these to:

owner : root
Access : read/write

group : root
Access : read only

others : read only

and then skel worked. these permissions have to applied to every file and folder so its best to use the apply recursively option when the dialog box pops up.

The command would be this (as root):
chmod -R a+r /etc/skel

Hope this helps.
Logged

marcus

  • Member
  • *
  • Posts: 19
Re: Having colors in bash
« Reply #2 on: September 24, 2007, 01:52:06 pm »

Thanks, but that didn't work. As root, I can see the colors and the informations as before, but as regular user I can't. There must be a configuration file for root and one for the user which tells bash what to display, but I can't find it. Can you help me with this? Maybe I could copy the file for root on the file for user?
Logged

marcus

  • Member
  • *
  • Posts: 19
Re: Having colors in bash
« Reply #3 on: September 24, 2007, 02:05:12 pm »

Never mind. I found .bashrc in root's home and copied it in user's home and then I used chown as root to give that file to the user. The user now has colors like root. The reset I made must have deleted that file from users's home.
Logged