Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

ssh remote command fuser does not work

Subject: ssh remote command fuser does not work
Date: Mon, 9 Aug 2004 16:14:15 +0100
Cannot get remote command fuser to work (although other commands ok) - keep 
getting select: Bad file number'

I've set up public/private key authentication between a 
Solaris 9 system running SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.  
and a 
Soalris 8 system running OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 
17 Mar 2004

I've got ssh and sftp and scp finally to work, but I am left with one problem, 
I can use ssh from sol9 to sol8 to start a remote session. I can ssh from sol9 
to sol8 to execute some remote commands, but not fuser
i.e.  all from the solaris 9 system
ssh userid@anothersol9 ls       works fine
ssh userid@anothersol9 fuser afile      works fine
ssh userid@sol8 ls              works fine
ssh userid@sol8 fuser afile  fails, I get 
select: Bad file number

Having seen this type of message before when it was to do with paths, I have 
tried the following...
created a logical link from /usr/bin/fuser to the /usr/sbin/bin/fuser , still 
got the same 'select: Bad file number'
created a test file in the home directory of the userid on the sol8 (server) 
system and tried 
ssh userid@sol8 ./test          and it worked ok, so I tried creating a logical 
link from the home directory of         
                                        userid on sol8 called fuser poining to 
/usr/sbin/fuser and tried again
ssh userid@sol8 ./fuser a file  and it still failed with 'select: Bad file 
number' . I even tried copying fuser to 
                                        home directory of userid on sol8 , and 
even though ssh userid@sol8 ./test 
                                        works , ssh userid@sol8 ./fuser afile   
still fails


I'm really stuck , any help/hints  gratefully received


Louise Swift
IT Services (rm 415) 
Hampshire County Council
Elizabeth II Court, The Castle,
Winchester, Hants SO23 8US
Tel: +44 (0)1962 847427
Fax: +44 (0)1962 847434
HPSN: 200 7427
Louise.Swift@hants.gov.uk


<Prev in Thread] Current Thread [Next in Thread>