Mailing List Archive

scp as user -> user ends up as root ?
Is the following a known "bug", fixed in newer releases, or something new?

Thanks ...


From sysA:

hermes:/tmp> scp LOG sais@iceberg:/tmp/LOG.test
LOG 100% |*****************************| 138
00:00 ETA
hermes:/tmp> id
uid=113(edenauto) gid=680(edndev)
hermes:/tmp>


To sysB:

iceberg:/tmp> ls -lt LOG*
-rw-r--r-- 1 root centre 138 Mar 20 11:11 LOG.test
-rw-r--r-- 1 root other 138 Mar 20 01:30 LOG
iceberg:/tmp>

hermes:/tmp> ssh -v
SSH Version OpenSSH-1.2.1, protocol version 1.5.
Compiled with SSL.


Marc G. Fournier marc.fournier@acadiau.ca
Senior Systems Administrator Acadia University

"These are my opinions, which are not necessarily shared by my employer"
Re: scp as user -> user ends up as root ? [ In reply to ]
On Mon, 20 Mar 2000, Marc G. Fournier wrote:

>
> Is the following a known "bug", fixed in newer releases, or something new?

What are the permissions on your scp binary?

-d


--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)
Re: scp as user -> user ends up as root ? [ In reply to ]
hermes:/home/centre/marc> ls -lt `which scp`
-r-sr-xr-x 1 root other 23288 Jan 18 13:21 /usr/slocal/bin/scp


On Wed, 22 Mar 2000, Damien Miller wrote:

> On Mon, 20 Mar 2000, Marc G. Fournier wrote:
>
> >
> > Is the following a known "bug", fixed in newer releases, or something new?
>
> What are the permissions on your scp binary?
>
> -d
>
>
> --
> | "Bombay is 250ms from New York in the new world order" - Alan Cox
> | Damien Miller - http://www.mindrot.org/
> | Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)
>
>
>
>

Marc G. Fournier marc.fournier@acadiau.ca
Senior Systems Administrator Acadia University

"These are my opinions, which are not necessarily shared by my employer"
Re: scp as user -> user ends up as root ? [ In reply to ]
> -r-sr-xr-x 1 root other 23288 Jan 18 13:21 /usr/slocal/bin/scp

only the 'ssh' binary needs a s-bit.
Re: scp as user -> user ends up as root ? [ In reply to ]
so, do we have a problem with install? I know I haven't modified anything
from the simple 'make install' ..


On Wed, 22 Mar 2000, Markus Friedl wrote:

> > -r-sr-xr-x 1 root other 23288 Jan 18 13:21 /usr/slocal/bin/scp
>
> only the 'ssh' binary needs a s-bit.
>

Marc G. Fournier marc.fournier@acadiau.ca
Senior Systems Administrator Acadia University

"These are my opinions, which are not necessarily shared by my employer"
Re: scp as user -> user ends up as root ? [ In reply to ]
On Wed, 22 Mar 2000, Marc G. Fournier wrote:

> hermes:/home/centre/marc> ls -lt `which scp`
> -r-sr-xr-x 1 root other 23288 Jan 18 13:21 /usr/slocal/bin/scp

scp should _not_ be setuid. Did "make install" install it as such?

-d

--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)
Re: scp as user -> user ends up as root ? [ In reply to ]
On Thu, 23 Mar 2000, Damien Miller wrote:

> On Wed, 22 Mar 2000, Marc G. Fournier wrote:
>
> > hermes:/home/centre/marc> ls -lt `which scp`
> > -r-sr-xr-x 1 root other 23288 Jan 18 13:21 /usr/slocal/bin/scp
>
> scp should _not_ be setuid. Did "make install" install it as such?

its been awhile, but I don't recall having done it manually :( it is
entirely possible that I did, just not sure why I would ...