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: 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)
  • Re: jail() House Rock
    ... Think carefully about exactly what kind of privileges your clients get. ... normal user account on the main server, and root inside the jail. ...
    (FreeBSD-Security)
  • Re: [SLE] Firefox, fixed and broken again.... :-(
    ... >> through KDE as root but not as a normal user. ... But if it works for root, not for user, I ... I opened Firefox it opened fine. ... I then tried opening Firefox again - remember it ...
    (SuSE)
  • Re: GUI login screen.
    ... Well i think the best solution to get around this is to setup a normal user account... ... then edit the /etc/passwd file and set that person with root permissions so as soon as they login theyre automatically made root. ...
    (Debian-User)
  • Re: startx Fatal server error: Cannot open /dev/tty0
    ... > startx fails under your normal user login but starts normally under your ... the question become why root user ... can init the video device, ...
    (alt.os.linux.suse)