Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-22-2004, 09:38 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 5

Rep: Reputation: 0
Question "permission denied when rcp-ing with root.

Hi All,

I am trying to rsh from one linux server to another (both RH 7.3)

1) The /root/.rhosts file exists containing "+" sign. permission 600.
2) I enabled the services under xinetd with "chkconfig rsh on" "chkconfig rexec on" & "chconfig rlogin on".
3) i added the lines "rsh,rlogin,rexec" to /etc/securetty.

I still get "permission denied when rcp-ing with root.

What should i do???

Old 01-22-2004, 09:47 AM   #2
LQ Newbie
Registered: Jan 2004
Posts: 18

Rep: Reputation: 0

Try using "scp" (secure cp) instead.

eg. scp km@tnt:/home/km/filename /tmp or whatever ...

Make sure that '.shosts" exist for both "root" and "km" (in home directories) with the correct permissions.

Hope this helps.

ps. tnt is machine name or can IP addtress of machine.
Old 01-22-2004, 09:49 AM   #3
LQ Newbie
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I cannot work with ssh. i have 35 machines here...
I dont want to install ssh on them.

I want my esh problem to be solved.
Old 01-22-2004, 10:16 AM   #4
LQ Newbie
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
My problem was solved by:editing the file /etc/pam.d/rsh

# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
###auth required /lib/security/
auth required /lib/security/
###auth required /lib/security/
###auth required /lib/security/
account required /lib/security/ service=system-auth
session required /lib/security/ service=system-auth

Old 01-22-2004, 12:35 PM   #5
LQ Newbie
Registered: Jan 2004
Location: USA
Distribution: Mandrake 9.2
Posts: 9

Rep: Reputation: 0

your solution fixed mine as well using rh9 and sco openserver.

Thnx a bunch.

Old 03-11-2004, 07:41 PM   #6
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
now that your problem is solved you'd be very smart to start installing those 35 machines with ssh. My dog knows how to get your login credentials with rsh.
Old 11-23-2004, 05:04 AM   #7
LQ Newbie
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
Thanx for this working solution. Finally an answer.

Was getting very tired reading the same ssh story over and over again.

We know all bout security, we agree that ssh/scp is better!
But there are more things to consider, not just security.
Otherwise.. we all would drive Volvo's, wouldn't we?
Old 11-24-2004, 04:48 PM   #8
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Originally posted by FSS
But there are more things to consider, not just security.
Such as?

Password prompt a problem? Use keys, that's why they're there.

I've got close to 10 times the 35 machines the thread starter says are too many, and SSH/SCP/rsync (-e ssh) have served me well.

What inhibits anyone from using it?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Only root hears sounds, alsa gives "permission denied" Baix Linux - General 4 07-02-2005 01:30 PM
"permission denied" when doing rsh/rcp ayeletr Linux - General 1 01-22-2004 09:45 AM
Permission denied on " ls "for root user itsjvivek Linux - General 12 12-11-2002 07:02 PM
ls in /tmp produces "permission denied" even as root kpfeiffer Linux - Newbie 5 10-06-2002 12:40 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration