Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

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.
kgn_vt

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.