Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Guys I have installed Samba on my server and now trying to connect to the server via Putty. When I log on a user it gives this prompt login ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    39

    displya jane@localhost instead of bash$

    Hi Guys

    I have installed Samba on my server and now trying to connect
    to the server via Putty.

    When I log on a user it gives this prompt

    login as: jane
    jnangolo@10.109.216.16's password:

    -bash-3.2$



    I want it to display this:

    jane@localhost$

    I dnt want it to log in to bash.

    root@localhost.......it shud do the same for users.

    Help

  2. #2
    Just Joined!
    Join Date
    Dec 2011
    Posts
    4
    Try to copy /etc/skel/ all hidden files to /home/

    cp /etc/skel/.*

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Quote Originally Posted by ndaka123488 View Post
    I dnt want it to log in to bash.
    If you don't want to log into BASH then what do you want to log into?

    If you want to see user@localhost then you might have to modify your bashrc script in /etc to tell it to show what you want. Google bash prompt to get some web pages on what you need to change.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. #4
    Just Joined!
    Join Date
    Nov 2011
    Location
    New Zealand
    Posts
    79
    Quote Originally Posted by Lazydog View Post
    If you don't want to log into BASH then what do you want to log into?
    The Internet?....

    Also, if your accessing a box remotely the prompt should be user@hostname - if u had several boxes open remotely all saying user@localhost it could get confusing

  5. #5
    Banned
    Join Date
    Nov 2011
    Location
    India
    Posts
    29
    Quote Originally Posted by Lazydog View Post
    If you don't want to log into BASH then what do you want to log into?

    If you want to see user@localhost then you might have to modify your bashrc script in /etc to tell it to show what you want. Google bash prompt to get some web pages on what you need to change.
    Try to setup PS1 variable, this will solve your problem

    export PS1='[\u@\h \W]\$ '
    or
    set PS1='[\u@\h \W]\$ '

    --
    Manoj

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...