LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to change user info? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-user-info-895468/)

mei0fei 08-04-2011 02:41 AM

how to change user info?
 
mei@ubuntu:/$ grep 'mysql' /etc/passwd
mysql:x:113:123:MySQL Server,,,:/nonexistent:/bin/false

I want change user account "mysql" info like is:
mysql:x:113:123:MySQL Server,,,:/nonexistent:/bin/bash

what should I do ? thanks

acid_kewpie 08-04-2011 02:52 AM

ok, well to answer the question, you can just change it in a text editor. you could also use chsh. But WHY?? you should never be logging in as a service account, that's a really really bad idea.

colucix 08-04-2011 02:53 AM

Try the chsh command. Anyway, why do you need to assign a login shell to the mysql user? It is not intended for login and it could raise some security risk.

Edit: beaten by acid :)

mei0fei 08-04-2011 03:41 AM

I am just looking some document about Running Multiple MySQL Instances on One Machine . I want use account "mysql" on bash terminal to browse mysql datadir. and I found I cannot login when using "mysql" account.

acid_kewpie 08-04-2011 03:58 AM

yeah, so... DON'T do that. There is a reason why things are configured how they already are. just use root.


All times are GMT -5. The time now is 11:42 PM.