LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-22-2004, 10:38 AM   #1
ayeletr
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???

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

Rep: Reputation: 0
Wink

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.
kgm.
 
Old 01-22-2004, 10:49 AM   #3
ayeletr
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, 11:16 AM   #4
ayeletr
LQ Newbie
 
Registered: Jan 2004
Posts: 5

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

#%PAM-1.0
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
###auth required /lib/security/pam_nologin.so
auth required /lib/security/pam_securetty.so
###auth required /lib/security/pam_env.so
###auth required /lib/security/pam_rhosts_auth.so
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth


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

Rep: Reputation: 0
ayeletr

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

Thnx a bunch.

dw
 
Old 03-11-2004, 08:41 PM   #6
german
Member
 
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, 06:04 AM   #7
FSS
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, 05:48 PM   #8
sigsegv
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
Quote:
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?
 
  


Reply


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 05:50 AM
Only root hears sounds, alsa gives "permission denied" Baix Linux - General 4 07-02-2005 02:30 PM
"permission denied" when doing rsh/rcp ayeletr Linux - General 1 01-22-2004 10:45 AM
Permission denied on " ls "for root user itsjvivek Linux - General 12 12-11-2002 08:02 PM
ls in /tmp produces "permission denied" even as root kpfeiffer Linux - Newbie 5 10-06-2002 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:40 AM.

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