Re: ssh remote command problem;



In article
<0ccd09b6-d4f0-430d-9311-becabcaaf393@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
rpnabar@xxxxxxxxx writes:

I did the fix as a normal user. So did NOT touch the /usr/bin/scp as
root. (we have many other users so I prefer not to mess with my root
privilages) I aliased my scp to ~/bin/scp in which I stuffed the shell
script you recommended.

THat one invokes the ~/bin/run_post_processor which does the
postprocessing. Works like clockwork.

But it seems to get invked on outgoing scp calls as well.(obviously!)
Is there any way to test/prevent that?

You can do what the scp code itself does:

while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)
switch (ch) {
...
/* Server options. */
case 'd':
targetshouldbedirectory = 1;
break;
case 'f': /* "from" */
iamremote = 1;
fflag = 1;
break;
case 't': /* "to" */
iamremote = 1;
tflag = 1;
...

I.e. only invoke the postprocessor when one of the 't' and 'f' options
are given.

--Per Hedeland
per@xxxxxxxxxxxx
.



Relevant Pages

  • Re: SSH keygen and login problem
    ... i login with my normal user then use the expert command (which ... is like su) i use the root privilegs for key creating) ... For my file transfer script i want to use scp without password. ... 1- I logined to my Checkpoint (which is Redhat based and the one who ...
    (RedHat)
  • RE: SSH keygen and login problem
    ... So you're trying to connect as root to the remote server? ... login with my normal user then use the expert command i ... For my file transfer script i want to use scp without password. ... I copied yhe public key to my home folder at the remote server ...
    (RedHat)
  • Re: SSH keygen and login problem
    ... It will automatically copy the public key to ur destination. ... creating the key as root or normal user? ... For my file transfer script i want to use scp without password. ... is source) with my personal user and gave expert command to have root ...
    (RedHat)
  • Re: [opensuse] Post installation queries (FIRST successful installation of Linux)
    ... permission from your *normal user* account by exercising root privileges ... user to root. ...  Done with sudo! ...   i - puts vi in insert mode ...
    (SuSE)
  • Re: user privledges
    ... > redhat 7.2 i created a user account for myself to use on a daily basis. ... > fare i have just been su - and entering the root pass. ... it started but would not install because i did ... sofware to /opt/musicmatch as a normal user. ...
    (comp.security.unix)