Topic "sudo su to a non-root user"

Author Message
kgn_vt

Guest


I followed the process in this link --> http://winscp.net/forum/viewtopic.php?t=3046

I can successfully connect but it connects as root. I have the user and group Id numbers matching and have the owner and group assigned to the copied dftp-server file as described along with the sudoer file entries.

I need this to connect as a non-root user so the owner/group is assigned to this user if a new file or directory is created using the non-root ID.

Any ideas will be greatly appreciated.
Guest




kgn_vt wrote:
I followed the process in this link --> http://winscp.net/forum/viewtopic.php?t=3046

I can successfully connect but it connects as root. I have the user and group Id numbers matching and have the owner and group assigned to the copied dftp-server file as described along with the sudoer file entries.

I need this to connect as a non-root user so the owner/group is assigned to this user if a new file or directory is created using the non-root ID.

Any ideas will be greatly appreciated.


I've found a workaround where I do a sudo -u /root/admin1-sftp-server and give the appropriate permissions and sudoer entries to allow the execution.
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