The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Automated FTP wakhan Shell Programming and Scripting 4 07-08-2008 12:53 PM
automated ftp. sangfroid Shell Programming and Scripting 10 05-07-2007 11:52 AM
Automated FTP shauche UNIX for Advanced & Expert Users 11 07-11-2002 02:08 AM
FTP automated? n9ninchd UNIX for Dummies Questions & Answers 6 05-18-2001 10:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-21-2008
Registered User
 

Join Date: Nov 2008
Location: Texas
Posts: 5
Automated Login?

hi everyone,

btw, this is my first post and I have done extensive searching before posting so here's the problem:

I need to be able to do two things from the dll I'm writing.
1.) move a file from our production server to our repository server
2.) verify that the file exists in the repository server.

The second thing isn't an issue and is already written and will be executed in a ksh script.

The first thing is not a problem and can be accomplished with a remote copy: rcp -r -p test.pdf drawlist@pdm-svr:/home/files/poa102. The user drawlist has been set up with permission to access the pdm-svr. This command works for one of the network guys down stairs, but for my user it does not. It tells me 'Permission is denied'. If I rlogin as drawlist and execute rcp -r -p test.pdf pdm-svr:/home/files/poa102 it obviously works.


So my question is two-fold:
  • What is preventing my rcp command (when prefacing the repository with the user) from working?
  • Would it be easier to login as the drawlist user and execute the command, and if so how could I automate the password verification? If rhosts is the answer, is there any other command/way to have an automated login?
Thanks,

Josh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,278
Quote:
What is preventing my rcp command (when prefacing the repository with the user) from working?
Dont know... To answer we would need to know who you are when connecting and the perms settings of /home/files/poa102...
Quote:
Would it be easier to login as the drawlist user and execute the command, and if so how could I automate the password verification? If rhosts is the answer, is there any other command/way to have an automated login?
Yes but not necessarily... yes .rhosts...but ssh could also be an option (and configured as with no passwd...)
Reply With Quote
  #3 (permalink)  
Old 11-21-2008
Registered User
 

Join Date: Nov 2008
Location: Texas
Posts: 5
Quote:
To answer we would need to know who you are when connecting and the perms settings of /home/files/poa102...
We use BaaN so the user running the session will be different every time. The majority of users will not be super users. But for the example I provided, I logged in using my regular user. I apologize for my ignorance, but what are perm settings and how/what do I access to find out what they are?

Quote:
Yes but not necessarily... yes .rhosts...but ssh could also be an option (and configured as with no passwd...)
Can you please provide an example of the syntax for using ssh? When configuring for no password, is that a blanket setting or can it be set up for individual/group instances?
Reply With Quote
  #4 (permalink)  
Old 11-21-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,278
connect yourself to the box and cd /home/files/;
ls -ald poa10
the output should look like:
drwxr-xr-x ...
the first set of rwx is for the owner, the second for the group and the third for all others...
rwx is read write execute I let you guess the rest...
I usually give software stuff a GID (group ID) and include the athorized uid to that group and so change the directory perms to 775 or
drwxrwxr-x or even drwxrwx--x...
you could even do
drwxrwsr-x which would force whatever file is copied there to inherit the GID...

ssh without passwd is per user auth with strongkey auth with public private key exchange
the best would be for you to read the man pages or do some search to see possible confgurations and "HOWTOS"...

All the best
Reply With Quote
  #5 (permalink)  
Old 11-21-2008
Registered User
 

Join Date: Nov 2008
Location: Texas
Posts: 5
I'll discuss with the network guys, thanks for the help.
Reply With Quote
  #6 (permalink)  
Old 11-21-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,278
I just got out of bed..for this...I forgot the obvious that might solve all your automatic login problem:
What about NFS?
You wouldn't need to login nor rcp , just correct permission
All you need is to export to prodserver /home/files/poa102 and on prodserver mount the exported directory:
mount repositaryserv:/home/files/poa102 /torepos/files/102

Simple no?
Back to bed...
Reply With Quote
  #7 (permalink)  
Old 11-24-2008
Registered User
 

Join Date: Nov 2008
Location: Texas
Posts: 5
I appreciate the response. I'm going to ask the network guys about this to see what they say.

Thanks again for the reply,
Josh
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 06:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66