VectorLinux
September 15, 2014, 11:04:44 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Having colors in bash  (Read 961 times)
marcus
Member
*
Posts: 19


« on: September 24, 2007, 05: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



« Reply #1 on: September 24, 2007, 10: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


« Reply #2 on: September 24, 2007, 12: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


« Reply #3 on: September 24, 2007, 01: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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!