The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-21-2008
jshapaka jshapaka is offline
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
  #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,568
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...)
  #3 (permalink)  
Old 11-21-2008
jshapaka jshapaka is offline
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?
  #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,568
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
  #5 (permalink)  
Old 11-21-2008
jshapaka jshapaka is offline
Registered User
  
 

Join Date: Nov 2008
Location: Texas
Posts: 5
I'll discuss with the network guys, thanks for the help.
  #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,568
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...
  #7 (permalink)  
Old 11-24-2008
jshapaka jshapaka is offline
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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