Search found 6 matches

by PrateekThakur
04 Oct 2012 09:15
Forum: DOS Batch Forum
Topic: How can i change user name for linux machine in batch file.
Replies: 11
Views: 8169

Re: How can i change user name for linux machine in batch fi

foxidrive wrote:I have no answer - and I don't have the means to test it.


@fordrive : Thanks for your assistance. I got solution for this using Process class in c sharp to automate this process, rather using bath file. And its doing pretty good.

Thanks.
by PrateekThakur
04 Oct 2012 06:41
Forum: DOS Batch Forum
Topic: How can i change user name for linux machine in batch file.
Replies: 11
Views: 8169

Re: How can i change user name for linux machine in batch fi

If you can't do it with Plink but can do it interactively with Putty then maybe a connection via Plink doesn't have the right permissions, at a guess. I tried to login as webAdmin directly, but it ask for password then i give same password again and again it is not accepting, saying Access denied. ...
by PrateekThakur
04 Oct 2012 06:28
Forum: DOS Batch Forum
Topic: How can i change user name for linux machine in batch file.
Replies: 11
Views: 8169

Re: How can i change user name for linux machine in batch fi

@foxidrive : Actually i need to login in that machine by giving my credentials( u: prateek, p: password), then i can login as webadmin which prompt for password that is same password which is for user prateek i.e, password. This all thing can be done with putty , but i want run plink.exe by batch fi...
by PrateekThakur
04 Oct 2012 06:10
Forum: DOS Batch Forum
Topic: How can i change user name for linux machine in batch file.
Replies: 11
Views: 8169

Re: How can i change user name for linux machine in batch fi

@foxidrive : Sorry for that, both password are same that is "password".
by PrateekThakur
04 Oct 2012 06:09
Forum: DOS Batch Forum
Topic: How can i change user name for linux machine in batch file.
Replies: 11
Views: 8169

Re: How can i change user name for linux machine in batch fi

@ Squashman : I really don't know about sudo command, infact i'm windows guys just wanted to run batch file in windows which will perform the remote login in linux machine for user "prateek" and then wanted to change login name or login as "webadmin" with password "password&...
by PrateekThakur
04 Oct 2012 05:22
Forum: DOS Batch Forum
Topic: How can i change user name for linux machine in batch file.
Replies: 11
Views: 8169

How can i change user name for linux machine in batch file.

Hi, I have batch file which will start plink.exe to login into remote linux machine: "start C:\Users\279293\Desktop\PLINK.EXE -ssh -P 22 prateek@10.205.198.34 -pw password" Now i to change username(prateek) to login as webadmin and also providing password. So what I'm doing, i'm appending ...