1837277 Members
2786 Online
110115 Solutions
New Discussion

RCP by normal users

 
SOLVED
Go to solution
Henry Chua
Super Advisor

RCP by normal users

Hi Guys,

I tried using the rcp command to copy a files to a remote directory but can only do so in Super user mode, how can I do so with other users?

Thank u & Merry X'mas
Henry
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: RCP by normal users

Each user must have a .rhosts file set up in its home directory on the remote machine.

# man rhosts

for more information.
Indira Aramandla
Honored Contributor

Re: RCP by normal users

Hi Henry,

You can use SUDO as well. Enter the entries in the sudoers file and specify the normal user name, alias name and the command (rcp).


IA
Never give up, Keep Trying
Nguyen Anh Tien
Honored Contributor
Solution

Re: RCP by normal users

Right. each user has his own .rhost file
let do like this:
1. edit .rhosts file
#cd ~
#vi .rhosts
hostname1 username1

hostname1: IP or hostname you want to allow rcp to.
username1: username you want to allow to use rcp
2. issue rcp command
note: you must login 1 by username1 and issue rcp command.
regard
tienna
HP is simple
Stanimir
Trusted Contributor

Re: RCP by normal users

There are a couple of security files,responsible for rcp-security:

1. /var/adm/inetd.sec
2. /etc/hosts.equiv
3. $HOME/.rhosts

Check it.
Regards,Stan

Henry Chua
Super Advisor

Re: RCP by normal users

thanks guys