LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2004, 12:46 PM   #1
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
ssh behaves different for root and users


hello

some time ago, I set up a dsa keypair not to need to enter my password everytime I ssh to my server.

this has worked fine and troublefree ever since.

today I tried to do the same for the regular user I use, in order not to need to log in as root to connect first (to avoid entering my root passwd - I'm lazy)

so I generated my key pair, copied it on both machines in ~/.ssh/, copied id_dsa.pub to authorized_keys, and tried to login. I get the following problems:

- my password is still required
- /etc/motd is displayed (it's not when I log in as root)
- ~/.bashrc is not executed. if after login I su username, .bashrc is executed fine.

how come? I checked the permissions of /home/username/.ssh/ and its contents with those of /root/.ssh/, they are the same, but I guess the problem has to do with the sshd config (since I get /etc/motd at login)

any clue someone?
 
Old 11-20-2004, 07:09 AM   #2
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Original Poster
Rep: Reputation: 15
It is actually due to an SSH limitation

when user directories are group-writeable, ssh refuses to use the keys in /home/*/.ssh/

that's all
 
  


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
ssh changes the way python script behaves shanenin Programming 4 11-16-2005 04:22 PM
K3b behaves erratically - root privileges? apachedude SUSE / openSUSE 1 12-03-2004 05:48 AM
SSH Config - non-root users toccoa Linux - Newbie 1 07-18-2003 11:07 PM
Non-root users can log in to SSH but not read Home Directory? Bizanshee Linux - Software 1 09-18-2002 08:01 PM
block SSH connection to non root users mangueJOE Linux - Networking 3 07-11-2002 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration