Topic "unable to use sudo on Solaris 10"

Author Message
chewy1101
[View user's profile]

Joined: 2015-03-14
Posts: 1
Location: US
Hello,

I'm having trouble using sudo to connect to SunOS 5.10 through my WinSCP 5.5.6. I have no problem connecting through putty then running the sudo su - "xxxx" (where xxxx is the sudo id) command to connect the sudo id. However, when I try to setup my WinSCP to connect through SCP or SFTP protocol, I'm not able to.

Here are few attempts I done:

Attempt-1:
.WinSCP File Protocol: SCP,
.Advanced Setting:Environment:SCP/Shell: sudo su - xxxx
.All other settings are default
Results: Error, Connection has been unexpectedly closed. Server sent command exit status 127. Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).

Attempt-2:
.WinSCP File Protocol: SFTP,
.Advanced Setting:Environment:SFTP: SFTP server: Default
.Advanced Setting:Environment:Shell: Shell: sudo su - xxxx
.All other settings are default
Results: I can login fine, but when i try to access 'xyz' directory I get error. Error, Error listing directory '/abc/xyz'. Permission denied. Error code: 3. Error message from server: Permission denied.



Any Help from anyone is appreciated
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Did you read this?
http://winscp.net/eng/docs/faq_su
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License