Ken Gunderson wrote:
> 4) login as mortal user
>
> 5) "super user up"
Is there a way to transfer a root-only access file (consider fetching
/etc/shadow for an offline password audit, or pushing a new /etc/motd up to the
server)?
Currently, I use {,p}scp and am left with either targetting [EMAIL
PROTECTED]:/path or doing a multistep copy (ssh [EMAIL PROTECTED] "getrootequiv
cp thefile /tmp" ; scp [EMAIL PROTECTED]:/tmp/thefile . # reverse the steps if
uploading)
The former requires root to be a real user with root role/privs. The latter
gives me a headache, and leaves a privileged file in /tmp.
I imagine I could switch to rsync over ssh (rsync -e ssh --path-to-rsync="sudo
rsync" ./motd [EMAIL PROTECTED]:/etc/motd) or something like that, but that
seems like serious overkill. And if sudo or whatever is elevating privs
requires a password, this breaks.
--Joe
_______________________________________________
sysadmin-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss