OpenWrt change ownership of file for export


Is there a way preferably without adding whole bunch of users to openwrt to export a file to different systems that may have different users?



if you use scp to copy individual files (or even a directory), it will assign the ownership as used by the target system. Is that sufficient for what you need?

Yes, that should work.

Forgot to mention I am using an NFS is it possible to use scp with it?

I just use scp from the linux CLI... you should be able to do this with the mount point and you can typically do it with any standard scp capable client (CLI or GUI based).

I don't know what happens with ownership if you mount the NFS share and copy it to your computer that way -- have you tried that?

root@OpenWrt:/mnt/sda1/share# scp client.ovpn aaron@:

/usr/bin/dbclient: Exited: Bad hostname
lost connection

The syntax is wrong here:

scp sourcefile user@address:destfile

Where sourcefile and destfile can be full paths.

scp client.ovpn aaron@

/usr/bin/dbclient: Connection to aaron@ exited: Connect failed: Connection refused
lost connection

does this host currently have an ssh server running and listening for incoming connections?

You could run the scp in the other direction (from the host > the OpenWrt router).

After installing openssh-server I receive:

root@OpenWrt:/mnt/sda1/share# scp client.ovpn aaron@
aaron@'s password: 
scp: /mnt/sda1/share/client.ovpn: Permission denied

This is probably on your host...
try another directory. Maybe your home directory (~/)

Thanks! That worked.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.