![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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:
Josh |
|
||||
|
Quote:
Quote:
|
|
|||||
|
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 |
|
|||||
|
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... |
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|