Re: remote copy issues



Sorry about that. We have been maintaining both login.cfg and /etc/shells. The /etc/shells must be a holdover from a long time ago when the company I am at switched from Sun to AIX.
I have seen /bin/bash defined in login.cfg, but not /usr/bin/bash. Although /bin is a symlink to /usr/bin, it is not an exact match.

Does anyone else have any other ideas on what could be causing both scp and rcp to fail?
Try,scp -v -v sourcelocation destlocation
-Ed Davignon
________________________________
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of Justin Bleistein
Sent: Wednesday, March 11, 2009 4:37 PM
To: aix-l@xxxxxxxxxxxxx
Subject: Re: remote copy issues

/etc/shells shouldn't be in AIX. It's function is replaced by the /etc/security/login.cfg file, with the shells parameter.
Basically it's a list of valid shells. Any Unix shells, full pathnames like /usr/bin/ksh, listed in there will be a valid shell for a user, any shell that is not listed there will not be a valid shell/login program for a user..

Example if the shell is not listed in the /etc/security/login.cfg file then, if you try to set that shell as the login
shell for a user by editing the /etc/passwd file directly, or issuing the passwd -s user_name command, then
it won't be a valid shell, because it is not listed in that file.

Thanks,

Justin Richard Bleistein | AIX System Administration
________________________________
From: IBM AIX Discussion List [aix-l@xxxxxxxxxxxxx] On Behalf Of Davignon, Edward [Edward.Davignon@xxxxxxxxxxxxxx]
Sent: Wednesday, March 11, 2009 4:05 PM
To: aix-l@xxxxxxxxxxxxx
Subject: Re: remote copy issues
What is in /etc/shells?

Does it match what is in lsuser?

cat /etc/shells
lsuser -a shell bashuser

________________________________
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of Mark Schlechte
Sent: Wednesday, March 11, 2009 3:32 PM
To: aix-l@xxxxxxxxxxxxx
Subject: remote copy issues
It would seem me changing a userid from ksh to bash via NIS has introduced some problems with rcp and scp capabilities of that user as it used to work..
I can also still run rcp and scp commands as root so it seems to be attributed to the shell change. Possible?
Although if I check my own userid (which uses bash) it works so it seems unlikley.
The symptons are:
- the rcp cmd just hangs
- the scp cmd goes through the motions and returns my prompt but there isn't any copy done
- rsh and ssh both work

????





DISCLAIMER: The information transmitted is intended only for the addressee and may contain confidential, proprietary and/or privileged material. Any unauthorized review, distribution or other use of or the taking of any action in reliance upon this information is prohibited. If you received this in error, please contact the sender and delete or destroy this message and any copies.


Relevant Pages

  • Re: remote copy issues
    ... Subject: remote copy issues ... Example if the shell is not listed in the /etc/security/login.cfg file then, if you try to set that shell as the login ... It would seem me changing a userid from ksh to bash via NIS has introduced some problems with rcp and scp capabilities of that user as it used to work. ...
    (AIX-L)
  • Re: remote copy issues
    ... Subject: remote copy issues ... Example if the shell is not listed in the /etc/security/login.cfg file then, if you try to set that shell as the login ... It would seem me changing a userid from ksh to bash via NIS has introduced some problems with rcp and scp capabilities of that user as it used to work. ...
    (AIX-L)
  • Re: remote copy issues
    ... Example if the shell is not listed in the /etc/security/login.cfg file then, if you try to set that shell as the login ... It would seem me changing a userid from ksh to bash via NIS has introduced some problems with rcp and scp capabilities of that user as it used to work.. ... the rcp cmd just hangs ...
    (AIX-L)
  • Re: Weird process hang
    ... KEVIN RICE ... I can scp fine too. ... Does the 'ls' problem happen if you run it from a shell on the remote ...
    (comp.unix.solaris)
  • Re: cron job
    ... Is it possible to create a cron job which performs ftp to a remote ... rcp and scp are better for transferring files. ...
    (comp.unix.shell)