Re: "Permission denied" Problem



On Wed, Oct 03, 2007 at 06:15:17PM +0530, Ravi Shanmugam wrote:
Hi All,

I have a query on accessing a root file as a non-root user. The problem
is described as follows.

I wanted to execute the following command

cat /root/.ssh/id_rsa.pub > /abiscard/local/root/.ssh/authorized_id

think about what you are asking. If a non root user could grab roots
public keys what would be the security risks? I'm not sure but since
the pub keys live in the same directory as the private keys, they will
share the same access protections from the containing directory, which
should be ... rwx...... ie, only root (the owner can read the
contents). You really don't want it any other way.

since, what you really just want is the public key, you can become
root, copy the public key someplace else, like maybe /var/spool/root
?? that say group wheel can read. Then, your backup user (which may be
part of group wheel) could read the key and put it where it can use
it.


as a non-root user i.e "backup" user. Is there any way I could do this.
This is for my project requirement.

Your reply will be well appriciated.

Regds,
Ravi R.S
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In
case you are not the original intended Recipient of the message, you must not, directly or
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are
requested to delete it and inform the sender. Any views expressed in this message are
those of the individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by Sasken Communication
Technologies Limited ("Sasken") unless sent with that express intent and with due
authority of Sasken. Sasken has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any virus
transmitted by this email
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
David Bear
phone: 602-496-0424
fax: 602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
"Beware the IP portfolio, everyone will be suspect of trespassing"

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: SSH - Direct login without password - Beginner Question
    ... > from trojan to atlantis directly without the root password request. ... Under openssh, the file to modify would be sshd_config ... non-root account on the target system to use the public key. ...
    (comp.unix.solaris)
  • Problem with enabling LDAP over SSL with a third-party Certification Authority
    ... My setup is a single forest with a root and sub domain. ... Public Key Algorithm: ...
    (microsoft.public.win2000.active_directory)
  • SSH root logins using public key only confusion
    ... in my sshd_config in order to allow root logins using a public key only. ... The man page warns about several other directives i'm simply not sure ... PasswordAuthentication left me with no direct root access at all ( ...
    (freebsd-questions)
  • Re: Enabling telnet, ftp, pop3 for root...
    ... passwords - the root and the user password. ... that the intermediate user account has a weaker password than the ... If you are using direct root login, then they don't even need to get ... Again, you don't have my public key, so you have no chance of guessing ...
    (alt.os.linux)
  • RE: "Permission denied" Problem
    ... Everyone should be able to read your public key - that's why it is ... I have a query on accessing a root file as a non-root user. ... this message are those of the individual sender unless otherwise stated. ... disclose or use the contents in any way. ...
    (RedHat)