ipsvd $USER

Atom 'Smasher' <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

the ipsvd package seems to be ~almost~ what i'm looking for... but there's
one thing i can't figure out...

i'm trying to accept connections via ssh (port forwarding) and keep the
environment variables set by sshd (HOME, LOGNAME, MAIL, PATH, USER,
USERNAME) but they all get hosed and reset as the user who started the
`tcpsvd` process (typically root).

the only way around this, is to test for TCPREMOTEIP and set a USER based
on that... not the best way to do things...

is there a way to have ipsvd drop permissions based on environment
variables of the process connecting to it?

anyway, i'm gonna keep hacking at it... thanks...!


 	...atom

 _________________________________________
 PGP key - http://atom.smasher.org/pgp.txt
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"If someone created a database of all primes, won't he be
	 able to use that database to break public-key algorithms?
	 Yes, but he can't do it. If you could store one gigabyte
	 of information on a drive weighing one gram, then a list
	 of just the 512-bit primes would weigh so much that it
	 would exceed the Chandrasekhar limit and collapse into a
	 black hole... so you couldn't retrieve the data anyway"
		-- Bruce Schneier, Applied Cryptography
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
Comment: What is this gibberish?  -  http://atom.smasher.org/links/#digital_signatures

iEYEARECAAYFAkC1V1IACgkQnCgLvz19QeMtAgCbBXs+aL0DBnZIJ75BKSTbZZWo
hegAnio8erHlk8Q6bTIvPwkkMDLbSNCf
=yGt0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.