Hi davemguru
Thanks for joining in...
Just to explain:
I have had my server compromised.
I have blocked root ssh access and changed all, except ftp users, to 'nologin'
I also changed my ssh port to 1234 (example)
Now I have to login as myself (user) and then su to get root access.
Code:
I understand. Surely, to be "in line" with security - "you" (as user) should not be copying files that are
"owned by other users"? Would it not make more sense to have crontab entries - owned by those users
- that did the requisite rsync on their behalf? "You" (as administrator) setup the crontabs of course.
I am setting up a new server and need to transfer all the web sites from my current server to my new server.
It will be a few days before I switch over, but in the meantime I want to transfer the files and then keep them up to date.
I wanted to do this during the night automatically by setting up a cron job.
I setup 'automatic login' from my current server to my new server.
This works fine when root login is allowed, but not when it is blocked.
Hence the reason for my orignal post.
'leb' came up with the answer that solved my problem:
Code:
PermitRootLogin without-password
This is a 'one off' excersize, but in any event, as server administrator I have to backup all the web sites on a daily basis.
Therefore it wouldn't be practical to setup lots of cron jobs.
Hope this makes things clearer.
Thanks for all the help and advise that I have been given.
My problem is SOLVED