LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2011, 02:41 AM   #1
mei0fei
Member
 
Registered: Jul 2011
Posts: 38

Rep: Reputation: Disabled
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
 
Old 08-04-2011, 02:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 08-04-2011, 02:53 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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
 
Old 08-04-2011, 03:41 AM   #4
mei0fei
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-04-2011, 03:58 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change info in a text file using c++ dodoaldodo1991 Programming 3 01-16-2011 02:30 PM
Trying to change info into a table like format shorte85 Linux - Newbie 10 03-31-2009 03:05 PM
where to get linux administrator script, ex: script to let's user change user info. hocheetiong Linux - Server 1 03-17-2008 12:06 AM
change default system boot info bburnham1141 Linux - Software 1 03-27-2005 02:10 AM
I want change mail header info, which config file i should modify? exper Linux - Software 2 12-05-2003 06:46 AM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration