Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I written a small shell script which uses scp (and a public key) to put a file from my main server onto 6 other remote servers. Works OK but the file on the remote servers end up belonging to root. Is there a command I could use to chown the file on all 6 remote servers to another user in one action ? Or is there something other than scp which would retain original ownership settings ?
Mike - getting there, slowly but surely :-)
Here's my little script...
## Script to put a file onto ALL Training Centre Servers from PTServer
I already had the -p option in my script (I must have posted an older version in my original post ! sorry.) but the files all ended up on the remote servers as being owned by root/root. It is _very_ likely that the UID/GID on the remote server is not the same as those on the main server....
I've added a 3rd variable to my script to take the "new user" name and after scp transfers the file it is chown'd - or left as root if the variable is null.