LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-28-2009, 09:51 AM   #1
wsduvall
Member
 
Registered: Aug 2006
Posts: 92

Rep: Reputation: 16
SSH key permissions issue


Hey guys. I'm trying to set up SSH keys for a user whos home folder has the following permissions:
Code:
[wsduvall@Aten home]$ ls -la
total 28
drwxr-xr-x 13 root     root   149 2009-03-06 08:57 .
drwxr-xr-x 21 root     root  4096 2009-01-20 21:26 ..
drwxrwxrwx 13 house    users 4096 2009-03-28 10:22 house
The user house has fully open permissions, so that any user may put files there or access them fully. I use it for sharing files between my roommates et cetera.

After my auth.log file was filled willed login attempts from China, I decided to allow keys only. The only problem is, ssh doesn't like the fact that the home folder is accessible by anybody. Anybody know a way to allow key login on this user?
 
Old 03-28-2009, 10:27 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
# chmod go-w /home/house

... or turn off StrictModes. I highly recommend the first method, and rethinking how you share files.
 
Old 04-04-2009, 07:05 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use a separate directory outside your home directory for sharing files. You can have a symbolic link to it if you want inside your home directory. Then you don't need to change any scripts that use this directory location.
 
Old 04-04-2009, 10:30 AM   #4
wsduvall
Member
 
Registered: Aug 2006
Posts: 92

Original Poster
Rep: Reputation: 16
Good solution, thanks!
 
  


Reply



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
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 11:15 AM
SSH Known_Host key Issue sachinh Linux - Security 3 10-16-2008 05:20 AM
ssh: is there any issue with adding my personal public key to authorized_keys? Meson Linux - Security 6 10-07-2008 12:27 AM
SSH key issue mfitzpat Linux - Newbie 4 09-03-2008 11:36 PM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM

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

All times are GMT -5. The time now is 09:07 PM.

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