LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2014, 09:07 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
How to quickly create an SCP account with limitted permissions?


Hello,

im having a linux (redhat) vps with root ssh access. i want to quickly create a new account for scp connections.

example i want to temporarilly give the credentials to some person which i dont know good. And i want him to have only access to folder lets say /home/peter ? and dont allow him to to consume more than 20gb of disk space or anyhow breach the security of the linux system.

is there any quick secure way to allow such scp access?
 
Old 04-21-2014, 06:27 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by postcd View Post
with root ssh access.
...then you've started out wrong. Revert. Period.


Quote:
Originally Posted by postcd View Post
i want to quickly create a new account for scp connections.
What you want is to ask less questions, follow up on each of them, ponder any implications and become a proper Linux admin.


Quote:
Originally Posted by postcd View Post
example i want to temporarilly give the credentials to some person which i dont know good.
...like giving the keys to your house to a total stranger and tell him to please not party the house to shreds. Yeah, right.


Quote:
Originally Posted by postcd View Post
And i want him to have only access to folder lets say /home/peter ?
See 'scponly'.


Quote:
Originally Posted by postcd View Post
and dont allow him to to consume more than 20gb of disk space
See 'man quota'.


Quote:
Originally Posted by postcd View Post
or anyhow breach the security of the linux system.
Whole different ball park. Lot's of things to be said here. Did you actually read the security section of your distributions documentation? Did you implement any measures? (Running LFD and such don't count.)


Quote:
Originally Posted by postcd View Post
is there any quick secure way to allow such scp access?
quick != quality.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Copying files in an admin account from an account with insufficient permissions? nobuntu Linux - General 14 07-14-2012 02:14 AM
[SOLVED] SFTP/SCP only per account td3201 Linux - Server 7 01-04-2012 08:58 PM
LXer: How to Create Space Scenes Quickly and Easily in Gimp LXer Syndicated Linux News 0 03-11-2010 09:30 AM
LXer: Quickly create a video presentation of your Linux desktop LXer Syndicated Linux News 0 12-09-2008 09:40 PM
create linux user with limitted access to one folder only AlaeddinB Linux - Security 9 07-02-2007 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:55 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