Why i cannot execute remotely soffice with this new user ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Why i cannot execute remotely soffice with this new user ?
# 1  
Old 01-26-2012
Why i cannot execute remotely soffice with this new user ?

Hi,
I would like to remotely execute soffice with different users on a remote machine.
Basically I am connected to the machineA as user John. I would like to execute several soffice to the remote machineB.

The remote machine B has different users R,S on the same group.
I can launch remotely soffice with user R with no problem with the following command:

Code:
remsh machineA -l R -n "nohup soffice -display localhost:1.0 \
-accept='socket,host=127.0.0.1,port=2081;urp;OpenOffice.ServiceManager' \
-norestore  -headless -nofirststartwizard 1>&- 2>& - &"

The admin added a new user recently “usertest”. But I cannot launch soffice with the user “usertest”.
In “.rhosts” I added the line “machineA usertest”.
But when I launch the following command :

Code:
remsh machineA -l usertest -n "nohup soffice -display localhost:1.0 \
-accept='socket,host=127.0.0.1,port=2081;urp;OpenOffice.ServiceManager' \
-norestore  -headless -nofirststartwizard 1>&- 2>& - &"

I got the following error :
Quote:
Permission denied.
I don’t have control on the creation/deletion of users in machineA. What should I ask to the admin of machineA in order to fix this problem ?

Thanks

Last edited by vbe; 01-26-2012 at 12:48 PM..
# 2  
Old 01-26-2012
It should be in machineB that you add the given line in .rhosts:
machineB... in machineA .rhosts
machineA.. in machineB .rhosts
To see if it works correctly I would just do a
Code:
 remsh machineA -l usertest

and modify what is requested till it works before sending anything else...
This User Gave Thanks to vbe For This Post:
# 3  
Old 01-27-2012
Hi,

I noticed if i do the following command with new user "usertest"from machineA :

Code:
remsh machineB -l usertest

I am asked for the password like this :
Code:
Password:

In other hand , if I do the same command with user "R" i am not prompted
for the password :
Code:
remsh machineB -l oias904
Last login: Fri Jan 27 08:52:28 from 10.192.41.254

I dont know why the user 'R' is not prompted for the password. I would like to have this functionality for the new user 'usertest' but I dont know what I should do for this.

Btw I added on the $HOME of machineA and machineB the file 'rhosts'.
On the local machineA I added the line on rhosts :
Quote:
machineB usertest
But the previous commands behave the same with this line.

Btw on the remotemachineB the file etc/password contains the following :
Quote:
oias904:x:501:500:Admin. MACHINEB:/tools/oracle/machineB:/bin/ksh
usertest:x:502:500::/tools/oracle/machineB:/bin/ksh
Does it explain why there is no prompt ? I dont understand those lines.

Therefore what should I do if i dont want to be prompted for the password with remsh ?

Thanks
# 4  
Old 01-27-2012
It may likely explain: What are the perms on the .rhosts? If usertest cannot read the file, that may well explain why... What about the home directory's perms?
But main question, why was a proper home directory not created for this user, it doesn't take much resource and is fare more safe and customisable... Here it would have to share the same .profile and surely could not have a history file...
This User Gave Thanks to vbe For This Post:
# 5  
Old 01-27-2012
Thanks vbe for this quick answer ! You are right : usertest has no permissions to read the file ".rhosts". The home directory of usertest is the same home directory as the other user R.

I guess it is the responsability of the adminstrator to create a home directory for this user ? What do you think ? How can I change the perm on .rhosts for user 'usertest' .
# 6  
Old 01-27-2012
Sorry for the delay, was out of office...
Quote:
How can I change the perm on .rhosts for user 'usertest' .
It will depend if you can connect as the owner of the file, and may not be enough depending of OS...
An elegant way but not all OS support is to make the .rhosts file ReadOnly on group and get usertest to be in a common group as the owner: Does oias stand for oracle installer? Could it be possible to get usertest in the group dba for example?
What OS are you using (and version...)
# 7  
Old 01-30-2012
Hi,
Thanks you for your answer on Friday..

The remote machine is "uname -a" :
Linux S248-22 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux

On Friday we created a proper home directory and file ".rhosts" for usertest on the remote machine.
Btw there is no profile for usertest for the moment.Here is the content of ".rhosts" in home directory for usertest :

Quote:

machineA usertest
machineB usertest
Furthermore the user "usertest" is in the same group as "oias" according to the administrator.

I still cannot acces to the remote machine from my local machine.
When i Do "remsh machineA -l usertest" from the local machine machineB i am still asked for the password.

What should I do now to fix this issue ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to execute command remotely as sudo and save the output locally?

Hello , I am trying to run a NetBackup command in remote server. Also this command can only be run by root so I am using sudo . Also I want the output of the command locally in a file. The below command asked for password , ran successfully and showed Output on my local server screen ... (2 Replies)
Discussion started by: rahul2662
2 Replies

2. Shell Programming and Scripting

[perl] execute remotely script

Hello Can some help with write part of perl script I need something like this in perl SSH="/bin/ssh -o BatchMode=yes -o" USER="test" SRV="server" SCRIPT_TO_EXEC="/tmp/test.sh" -> shell script OUT=/tmp/out.file ${SSH} -l ${USER} ${SRV} 'sudo /usr/bin/ksh -s' < ${SCRIPT_TO_EXEC} >> ${OUT}... (1 Reply)
Discussion started by: vikus
1 Replies

3. Shell Programming and Scripting

Need help to execute the shell remotely

Hi All, I have a typical problem where I have HP unix and want to connect to Solaris 5.10 box and run a shell. I tried with multiple forums but it does not help. As per my analysis, there is no ssh in my machine and so i cant connect to solaris box,secondly ftp to the solaris server is not... (2 Replies)
Discussion started by: cskumar
2 Replies

4. Solaris

how to execute shell script present in unix machine remotely from windows

how to execute shell script present in unix machine remotely from windows? I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros. Thanks In Advance. --Suresh (1 Reply)
Discussion started by: sureshmani
1 Replies

5. Shell Programming and Scripting

ssh execute command remotely

Hi all, Today I want to write a script to run the commands remotely. If I run the command as follows: ssh <user>@<ip> 'ls; pwd' it works fine. But when I want to use ssh to set view in clearcase, it will lose the response. as follows ssh <user>@<ip> 'cleartool setview <view_name>; pwd'... (1 Reply)
Discussion started by: Damon_Qu
1 Replies

6. Shell Programming and Scripting

Remotely Execute a script

Hi, What is the best way to remotely execute a script? Scenario: 1 Unix box creates a file and moves it to a 2nd unix box 2nd unix box must then move the file to a windows server How can i execute the ftp script on the 2nd server, I need to schedule the command to automate it!? I... (3 Replies)
Discussion started by: mcclunyboy
3 Replies

7. Linux

execute a program remotely using putty

hi all. I have a small program on a debian server which i need to execute remotely from a windows machine using putty. when i use putty to execute the program it starts running , but when i close the session the program stops running on the debian server as well. Can anyone guide me how... (4 Replies)
Discussion started by: coolatt
4 Replies

8. Shell Programming and Scripting

How to remotely execute a script (.COM ) on a VMS system ?

How to remotely execute a script (.COM ) on a VMS system ? rsh ? Thanks in advance (1 Reply)
Discussion started by: ivancleber
1 Replies

9. UNIX for Advanced & Expert Users

How to remotely execute a script (.COM ) on a VMS system ?

How to remotely execute a script (.COM ) on a VMS system ? rsh ? Thanks in advance (1 Reply)
Discussion started by: ivancleber
1 Replies

10. AIX

How to remotely execute a script on a VMS system ?

How to remotely execute a script on a VMS system ? rsh ? Thanks in advance (0 Replies)
Discussion started by: ivancleber
0 Replies
Login or Register to Ask a Question