LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot su in mysql account (http://www.linuxquestions.org/questions/linux-newbie-8/cannot-su-in-mysql-account-4175420790/)

figure20012 08-07-2012 06:05 AM

cannot su in mysql account
 
i cant su in an account
i want to su in the mysql account
why cant i do that?
entry for mysql in /etc/passwd
mysql:x:493:514::/home/databases/mysql/mysql:/bin/bash

the error is
su: /bin/bash: Permission denied

Can someone please help?

jschiwal 08-07-2012 07:06 AM

Mysql is a system account , and should not have logins disabled in /etc/shadow. There shouldn't be a password to enter when using `su'.

Why do you want to?

figure20012 08-13-2012 01:44 AM

Quote:

Originally Posted by jschiwal (Post 4747983)
Mysql is a system account , and should not have logins disabled in /etc/shadow. There shouldn't be a password to enter when using `su'.

Why do you want to?

i have a script to start my mysql server only when i am the mysql user
i still guet the permission denied when i try to su in as mysql


su: warning: cannot change directory
su: /bin/bash: Permission denied

Wim Sturkenboom 08-13-2012 02:24 AM

What are the permissions on mysql's home directory
Code:

ls -ld /home/databases
ls -ld /home/databases/mysql
ls -ld /home/databases/mysql/mysql

And show us your script, please.

figure20012 08-13-2012 02:40 AM

Quote:

Originally Posted by Wim Sturkenboom (Post 4752874)
What are the permissions on mysql's home directory
Code:

ls -ld /home/databases
ls -ld /home/databases/mysql
ls -ld /home/databases/mysql/mysql

And show us your script, please.

i cant su in any other account
i am trying to su in my account
su toto
permission denied
su - toto
also permission denied
i have tried to add a new user as well and su in the user
but also the permission is denied

figure20012 08-13-2012 02:47 AM

i have also tried to ssh to another account
ssh toto@toto.com
ssh error permission denied
but
ssh root@toto.com i can login to the machine toto.com


All times are GMT -5. The time now is 11:44 AM.