Got SSH working on my fedora 10 box and can login in as root fine
When I try to login as a standard user however I get this...
If i try to then run ssh-keygen i get
login as: user
Last login: Wed Feb 11 07:18:45 2009 from <<wks-name>>
-bash: /etc/profile: Permission denied
When I am logged in as root my prompt is
You don't exist, go away!
Is this normal?
im no linux guru but from the message it would seem you would need to alter the permissions on the /etc/profile whether thats the cause of the issue well thats another question.
Heard about this occasionally on fedora, can you check the permissions of /etc - as root do:
# ls -al / | grep etc
You should see something like:
drwxr-xr-x 73 root root 4096 2009-02-10 11:15 etc
But if it's
drwxr----- 73 root root 4096 2009-02-10 11:15 etc
Then the perms have been screwed up
drwxr-xr-x+ 153 root root 12288 2009-02-11 04:04 etc
Hmm looks good, how about:
ls -al /etc/profile
-rwxr-xr-x 1 root root 1138 2008-11-18 14:07 /etc/profile
# tail /var/log/secure
Feb 11 09:06:59 mhs-srv-web01 sshd: Accepted password for cwilson from 10.4.24.7 port 49968 ssh2
Feb 11 09:06:59 mhs-srv-web01 sshd: pam_unix(sshd:session): session opened for user cwilson by (uid=0)
Feb 11 09:07:04 mhs-srv-web01 sshd: pam_unix(sshd:session): session closed for user cwilson
Are you running SELinux? Type sestatus as root.
Nope - its disabled. really frustrating!
the /etc has an extended attribute set ( the +). Long shot but check that there isn;t something explicitly denying access to /etc
getfacl: Removing leading '/' from absolute path names
# file: etc
# owner: root
# group: root
(or maybe just rx to be safe)
setfacl -m user:cwilson:rwx
not sure how to do that recursively...
Your a genius - it worked a treat !! :D