sudo su to a non-root user

Advertisement

kgn_vt
Guest

sudo su to a non-root user

I followed the process in this link --> https://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.

Reply with quote

Guest

Re: sudo su to a non-root user

kgn_vt wrote:

I followed the process in this link --> https://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.

Reply with quote

Advertisement

You can post new topics in this forum