Automated Login?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automated Login?
# 1  
Old 11-21-2008
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  
Old 11-21-2008
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  
Old 11-21-2008
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  
Old 11-21-2008
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  
Old 11-21-2008
I'll discuss with the network guys, thanks for the help.
# 6  
Old 11-21-2008
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  
Old 11-24-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Run automated bash commands from sh login shell

I use plink.exe to automate remote commands that return data to Windows machines. This works well on newer servers running Red Hat since the commands were developed for bash and the designated user's login shell is bash. I need to also support older servers which are running Solaris 10 but the... (5 Replies)
Discussion started by: randman1
5 Replies

2. UNIX for Advanced & Expert Users

First login on KUbuntu 16.04 no SKEL copied with first login LDAPusers

Hello, we have an problem on kubuntu16.04 that when i login with ldap, and it is my first login, nothing is copied from skel. With SSH it is working fine. Can anyone say we how KDE setup an new first userlogin? Tested with SDDM and Lightdm. Thanks a lot! Best Regard darktux ----------... (1 Reply)
Discussion started by: darktux
1 Replies

3. UNIX for Advanced & Expert Users

Can adding to a new group be effective in current login environment without re-login?

Hey folks, When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID update without re-login? I am not talking about to use "login" or "su -l" commands which can only make... (2 Replies)
Discussion started by: hce
2 Replies

4. Shell Programming and Scripting

passing login details to htaccess login prompt

Hi, How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php). Any help or hint appreciated. Thanks, SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies

5. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

6. HP-UX

telnet login successful ,but ssh can not login

why I can login by telnet using root account but when i use login by ssh using root account it is not successful ,is it different password i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies

7. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

8. Cybersecurity

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both, when... (1 Reply)
Discussion started by: WhotheWhat
1 Replies

9. Web Development

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both,... (2 Replies)
Discussion started by: WhotheWhat
2 Replies
Login or Register to Ask a Question