Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    change regular user to bash shell?

    Reply
    Page 3 of 4 | Prev |   1     2   3   4   | Next
    lunat | # 21 | 2010-10-31, 15:15 | Report

    Originally Posted by dchky View Post
    Yes. A fresh install of PR1.3, install bash followed by bash-setup, it worked perfectly as a regular user and as root.

    If it doesn't work edit /etc/passwd and set the shall as /bin/bash there.
    had it. but that changed with the update.... have reboot to see if i get it to work. sec!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lunat | # 22 | 2010-10-31, 15:24 | Report

    Originally Posted by lunat View Post
    had it. but that changed with the update.... have reboot to see if i get it to work. sec!
    ---
    Nokia-N900:~# chsh user
    Changing the login shell for user
    Enter the new value, or press ENTER for the default
    Login Shell [/bin/sh]: /bin/bash
    ---
    maye you have to set a password.
    edit:
    as expected: password or not makes no difference: "chsh user" works just fine.

    further never edit /etc/passwd. you never know what weird things a system does and passwords might be stored in several places - lucky you, that the phone actually has them in /etc/passwd.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by lunat; 2010-10-31 at 15:39.

     
    kureyon | # 23 | 2010-10-31, 18:57 | Report

    Originally Posted by lunat View Post
    lucky you, that the phone actually has them in /etc/passwd.
    Ouch, that's bad. Should be using shadow password

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lunat | # 24 | 2010-10-31, 19:08 | Report

    Originally Posted by kureyon View Post
    Ouch, that's bad. Should be using shadow password
    if they didn't change it with the update then this phone has no shadow paswords. but this is not what i ment. the user data can be held in any database or structure on a phone. and it makes sense to have some kind of registry. /etc/passwd is an old relict. you were lucky that the phone uses that relict from unix stoneages and no other means of storing the information.

    the only thing that (should though isn't allways) be relyable is the accessmethodes. so chsh should change the shell using whatever is used on the phone to store the user data.

    and it does.

    br
    [to make the difference clear: if chsh doesn't change the shell then chsh is broken and i would considder it a bug - the program doesn't work. if /etc/passwd is not used and you try to set the shell there it is you who used the wrong place ]

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by lunat; 2010-10-31 at 19:27.

     
    gsirit | # 25 | 2010-11-01, 00:06 | Report

    Originally Posted by extendedping View Post
    So has anyone actually got bash as their default user shell?

    I'm ready to give up on it
    Why don't you just add "bash" command to your ".profile" file in /home/user path?... It'll open bash every time your start xterm.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    extendedping | # 26 | 2010-11-01, 00:18 | Report

    Originally Posted by dchky View Post
    Yes. A fresh install of PR1.3, install bash followed by bash-setup, it worked perfectly as a regular user and as root.

    If it doesn't work edit /etc/passwd and set the shall as /bin/bash there.
    tried both does not change user for me and I am at pr 1.3...too bad

    I wonder why its is not working, again it changes my prompt but doing echo $SHELL shows /bin/sh for user while showing /bin/bash for root. so it did not work correct?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lunat | # 27 | 2010-11-01, 00:26 | Report

    Originally Posted by gsirit View Post
    Why don't you just add "bash" command to your ".profile" file in /home/user path?... It'll open bash every time your start xterm.
    because there is a better way.

    install the bash and become root(unfortionally they have configured user may not change it himself):
    then simply type:
    Code:
    #chsh user
    please don't fuss around with the passwd file!

    [nb rant: that happens when you forbid the user to change things the easy way, they start doing dangerous things^^]

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by lunat; 2010-11-01 at 00:29.

     
    extendedping | # 28 | 2010-11-01, 00:30 | Report

    Originally Posted by lunat View Post
    because there is a better way.

    install the bash and become root(unfortionally they have configured user may not change it himself):
    then simply type:
    Code:
    #chsh user
    please don't fuss around with the passwd file!
    tried it, again changes prompt but keeps me at /bin/sh from the echo $SHELL command.

    weird, why is this working for other but not for me? grrr.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    extendedping | # 29 | 2010-11-01, 00:36 | Report

    Originally Posted by lunat View Post
    because there is a better way.

    install the bash and become root(unfortionally they have configured user may not change it himself):
    then simply type:
    Code:
    #chsh user
    please don't fuss around with the passwd file!

    [nb rant: that happens when you forbid the user to change things the easy way, they start doing dangerous things^^]
    ok after a reboot I see I am user /bin/bash...so I am part way there...I still have a horrid prompt (too long and of course on this screen real estate is precious, hopefully I can get my old prompt back and keep /bin/bash.

    btw here is my new prompt
    [2]user@nokia-N900|~]

    yucky right?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lunat | # 30 | 2010-11-01, 00:40 | Report

    Originally Posted by extendedping View Post
    tried it, again changes prompt but keeps me at /bin/sh from the echo $SHELL command.

    weird, why is this working for other but not for me? grrr.
    well then there are two things that could be wrong:
    1. you messed something accidentely up(dont think so)
    2. you need to log in again. reboot(... i'm lazy ).-

    the difference is: i am via ssh on the phone and you open a xterm

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 4 | Prev |   1     2   3   4   | Next
vBulletin® Version 3.8.8
Normal Logout