Roland Schulz skribis: > On Sat, Apr 2, 2011 at 1:45 PM, bob manc <dwr...@hotmail.com> wrote: > >> I am trying to use jsch to scp or sftp files to and from my ubuntu server. >> I have to login as ubuntu but want to do a 'sudo su -' command so I can >> overwrite files owned by root. >> Is there a way to do this on a session that will allow me to be root on >> subsequent calls? > > why so complicated? why not simply set the login username to root?
Ubuntu systems in the default configuration don't allow login as root. (There is no root password.) So you normally use sudo whenever root access is needed. https://help.ubuntu.com/community/RootSudo PaĆlo
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users