LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 02-05-2007, 10:45 PM   #1
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Rep: Reputation: 30
Setting up sftp access to a part of my home dir, don't have root permissions


Hi everyone,

This is the problem:

I have an account on a server. Another person (lets call him Georgie) has an account on the same server. Neither of us has root permissions. I would like to allow Georgie to download files *only* from one directory inside of my home directory (through sftp, scp or some other way). In other words, I want to set up so that Georgie can download files from /home/me/some_dir, but otherwise has no access to /home/me. Is this possible and in what way?

Thanks for your help.

Last edited by frankie_DJ; 02-05-2007 at 11:23 PM.
 
Old 02-06-2007, 01:31 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Yes.

/home/me = 751
/home/me/some_dir = 755

Everything else in /home/me should be 750.
 
Old 02-06-2007, 03:02 AM   #3
frankie_DJ
Member
 
Registered: Sep 2004
Location: NorCal
Distribution: slackware 10.1 comfy, Solaris10 learning
Posts: 232

Original Poster
Rep: Reputation: 30
OK, but then we have to share a password, right? That probably wouldn't work long term.

I don't really need the other user to have a shell and browse the files, I just want him to be able to download it.
 
Old 02-06-2007, 09:17 AM   #4
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 376

Rep: Reputation: 31
Quote:
Originally Posted by frankie_DJ
OK, but then we have to share a password, right?
No. You use yours, he uses his. Chort made /home/me/some_dir world readable.
Quote:
I don't really need the other user to have a shell and browse the files.
He does need an account so he can ssh in (sftp and scp ride on ssh).

Maybe he could be given a restricted "shell" that doesn't allow him to browse files (or do much of anything). But normally only root can change any user's shell.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot sftp - restritct home directory access ctb123 Linux - Security 1 12-22-2006 08:15 AM
Permissions problem - setting up dirs for root + group access ericcarlson Red Hat 1 03-26-2006 03:03 AM
Jailshelled sFTP logins can get above their home dir SupaDucta Linux - Security 9 03-21-2005 10:06 AM
Permissions home dir reset automatically Marco Vermunt Linux - Newbie 1 01-24-2005 01:50 PM
user home dir/permissions xilace Linux - Security 5 07-21-2004 12:33 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration