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:
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 :
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 ?
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
and modify what is requested till it works before sending anything else...
I noticed if i do the following command with new user "usertest"from machineA :
I am asked for the password like this :
In other hand , if I do the same command with user "R" i am not prompted
for the password :
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 :
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...
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' .
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...)
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.
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)
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)
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)
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)
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)
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)
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)