Change Mysql User Password Via Shell?

Jun 8, 2005

Anyone know the commands to change a MySQL user's password via ssh?

I found stuff for changing the root password, and tried to adapt it for the user, but it didn't work.

View 12 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Can't Change MySQL User Password

Mar 31, 2015

I try to change a mysql user password, but I get an error message:

Fehler: attribute name is invalid: status
Search for related Knowledge Base articles

I'm running12.0.18 Update Nr. 39

View 1 Replies View Related

How To Change Root Password From Shell

Apr 15, 2008

how to change root password from shell....

View 2 Replies View Related

Plesk Automation :: Change Mail Password From Shell

Mar 6, 2014

we have identified a number of customers with weak passwords - we wish to send them an email and then wait 1 hour - then change their passwords to the new password we have identified - due to them being across multiple domains, we don't want to do this via the PPA web gui - it would take quite a long time.

What is/are the commands for changing mailbox password for SMTP/IMAP/POP3??

i.e., is there a PPA command for changing both sides of send/receive?

View 2 Replies View Related

I Can't Change Mysql Password In Confixx

Mar 31, 2007

I have a problem:

When I try to change a password in my mysql, in confixx control panel I see:

Quote:

Unable to connect to the database

View 3 Replies View Related

Change Mysql Root Password With Ssh Access?

May 29, 2008

How can change mysql root password with ssh access?

View 6 Replies View Related

Change Jail Shell To Normal Shell

Jul 8, 2008

Do any1 know how to change jail shell to normal shell?

View 14 Replies View Related

How To Change Cpanel Password With FTP Password

Nov 22, 2007

How to change the Password of my FTP?

I know how to change the pwd. of cPanel, but I don't know how to change the pwd. of FTP?

View 10 Replies View Related

How To Execute Shell Scripts As Some User

Nov 18, 2007

I'm trying to write some scripts that automate the installation of a website with a content management system. This includes creating domains, installing databases etc via plesk API.

Now we have it creating the domains and databases via plesk, this is not the issue. It's permission problems issuing commands on the server.

I need to have the script install the cms and this requires writing files to a folder on the server owned by a user which is created with the domain.

e.g.
user creates timsdomain.com with ftp user name tim
Plesk makes directory on webserver called ~/vhosts/timsdomain.com/
inside this directory is a folder called httpdocs.
All the files within this folder are owned by tim.

Now my script (running as 'apache' in a folder owned by 'admin') needs to write/edit files to this directory as the user tim (or whatever user was created when the domain was set up).

How can I do this from a php script?

My idea would be to log in as the new user and then start issuing commands but I don't know how to login a user from a script.

I've tried exec, exec_shell etc
trying to log in via script as the new user using sudo/su/suid etc but they all ask for a password (for obvious reasons) but I cannot see a way to send the password to the command with the script. Ssh?

Here's some pseudocode that demonstrates what I'm trying to do, if you can think of a better way I'm all ears.

Code:
//User Fills in CMS/Domain information which becomes Form_Data

//uses plesk to create blank domain, create email addresses and empty database
Make_Domain(Form_Data) {
Plesk = Get_Plesk_Object();
Plesk.Create_Domain();
Plesk.Create_Database();
Build_CMS(Form_Data);
}

//HERE IS WHERE I AM HAVING TROUBLE: I can't figure out how to change the user so I can install files to a
// different directory other than the current user's directory (admin)

Build_CMS(Form_Data) {

change_to_user(Form_Data.ftp_username, FormData.ftp_password);
unpack_CMS_archive_into(user_directory); //eg unpack cms.tar into 'timsdomain.com' (if the above command didn't switch the current directory to users home directory)

//initialises CMS config files and installs CMS data to database
Run_Install_Scripts_On_Server(Form_Data);
//albeit complex, most important part of script
Confirm_Tim_Is_Awesome();
}

Confirm_Tim_Is_Awesome() {
while (getTim().has_moustache()) {
echo "<em>You're still awesome. </em>";
}

View 14 Replies View Related

PHP Block Shell Scripts On User Accounts

Apr 15, 2007

Is there any way to totally block php shell scripts on users accounts, i don't mean like the java shell in cPanel i mean a php shell script like the kind frequently used by hackers...

View 11 Replies View Related

Plesk 12.x / Linux :: Set Subscription User Shell Via Xml?

Jul 1, 2015

Is it possible to set the subscription shell option of an subscription via xml api? I see it is possible via cmd "/usr/local/psa/bin/subscription -u {subscription} -shell /usr/local/psa/bin/chrootsh" But how is it possible via xml api?

View 1 Replies View Related

Change CPanel Root Pass Via Shell

May 31, 2007

Is there a way to change the CPanel root password via the shell?

View 4 Replies View Related

Plesk 12.x / Linux :: Change Domain Name Preference - No Secure Shell Available

Dec 8, 2014

When I try to change a domain name preference from www to non-www i am getting the error

"Error: No secure shell available"

I am using plesk 12 .... 

View 1 Replies View Related

How To Create DB/User/Password?

Aug 9, 2008

My VPS has no control panel to do this.

how to create database, user & password for this database and how to restore a db.sql to this database.

View 4 Replies View Related

Changing FTP User Password

May 9, 2008

I've got an ftp account that was created in the very beginning and now I want to change the password to it but when I log in to my PLESK WINDOWS OS Control Panel and go under ftp accounts, I only see one account on there which is not what I've been using.

My questions is, is there another way of locating other ftp accounts that I have? In this case, its the account that I've been always using and its not under ftp account in my plesk cp.

I just really need to change the password to it n I can't find it.

Im on Plesk Windows OS

View 6 Replies View Related

How To Change An Email Password From SSH

Mar 27, 2009

I was using Direct Admin Panel, now expired!

How can we change an email password from - 'root' user?

I know we can change main domain email password by 'passwd user'. But how to change other emails with that domain?

They are surely located in /etc/vitual/domain/password , but in hashed format.

How to change via command line?

View 7 Replies View Related

How Do I Change The Root Password

Jun 11, 2009

I have dedicate servers and I want to change the root password. I'm using whm/cpanel.

What happen when I forget my root password?

View 9 Replies View Related

Change Root Password

Dec 10, 2008

how can i change root's password with SSH command?

View 3 Replies View Related

Password Change For Many Hosts

Nov 1, 2007

i have problem in my server but not in all hosts many host when i Password Modification the password change but when i open site by ftp or cpanel don't open and write that password is wrong

View 14 Replies View Related

How To Change Email Password From Ssh

Feb 12, 2007

I am just a newbie with linux and ssh.I know that we can control the server with ssh. SSH is faster and more secure than Web control.I need your help about with ssh:How to change the email password?How to add email address?How to disable/remove email address?How to forward email?Pleaser help me with one or more question above.My Server installed with Centos 4.4 with Cpanel 10.Thank you so much in advance.Longpt

View 14 Replies View Related

Cpanel Password Change

Mar 17, 2007

I searched the forum articles but couldn not find specifically what I wanted..
just learning with my dedicated server...

I want to change my cpanel password and ftp password but NOT change the msql server password. I tried to do it in WHM it also changes the database to my website and causes it to go down. (so I changed it back)

I tried to change it under: [URL to actual WHM removed] Password Modification in WHM but it changed the databse program as well.

Again all I want to change is the Cpanel acces and main FTP pass

Im doing this to keep old programmers out of my server)

View 4 Replies View Related

Over-riding The User/password Of A Folder

Nov 6, 2008

I have a website where a directory is user/password protect and i want not to be prompted for the user/password when coming from a certian ip (workplace).

how would i code it?

I am guesting to use the "Satisfy directive"?

View 2 Replies View Related

Change Root Password From HyperVM

Jan 27, 2009

Is it possible to change to root password to a VPS from inside HyperVM? I currently have 4 VPS's setup and I need to change the password for one of the VPses. Can I do this from inside HyperVM without having to go to SSH?

View 7 Replies View Related

How Would A Hacker Change A Cpanel Password

Jan 5, 2008

I'm having a problem with a hacker...using insecure scripts on my user's accounts he changes Cpanel passwords. I do not understand how a script running as user nobody would change a Cpanel password. Any ideas on that ?

I am using mod security (rules from gotroot.com), register_globals are disabled. I also disabled the password reset feature as I thought the hacker may be resetting the passwords and then reading the new password from the email account on the server using the insecure script.

Unfortunately this guy simply doesn't stop...he seems to have a reverse DNS list or something. He is only attacking accounts on one specific server of mine but I am pretty sure he doesn't have root access.

View 7 Replies View Related

Squirrelmail Password Change Option

Sep 12, 2007

I have 2 question regarding squirrel mail web interface..

1- Can a user change his mailbox password?

2- Is mailing forwarding option include in it?

View 4 Replies View Related

Change Password Of Multiple Email Accounts

May 21, 2009

One of our client domain.com has more than 200 email ids & they want to

change unique password for all users at one go is it possible ? if so , how can i do this .

I am running below :

cPanel 11.24.4-S35075
WHM 11.24.2 - X 3.9
CENTOS 5.3 i686 standard

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved