LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2005, 04:03 PM   #1
solnitza
LQ Newbie
 
Registered: Aug 2005
Location: Bucuesti, Romania
Posts: 3

Rep: Reputation: 0
How to restrict user permissions


Hi,
I'm a real newbie in Linux, and I don't even know where and what to search for, in order to do what i have in mind. I would appreciate any help.

Here's what I want to do...

I have a file server on my network, accesed internal by ftp. I have an external IP for this server, but the problem is that all ports are blocked by the ISP (and I can't do nothing about this), except for port 22. I want to let other friends outside my netork acces the server, and the only way would be using a SSH Secure File Transfer Client. Of course, I cannot let them use the root account. I need to create an user (or multiple users on one group) that would have restricted acces to most of the commands (as many as possible, even all), the only thing that i'm interested in is that to let them copy files from several directories (practically I want to simulate a ftp server).

It can be done?
If someone knows what I have to do, or where to search for please let me know.

Thanks a lot.
 
Old 08-26-2005, 04:07 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
why don't you just use port 22 for ftp?

Edit: You can use non standard ports for services

Last edited by bosewicht; 08-26-2005 at 04:09 PM.
 
Old 08-26-2005, 04:18 PM   #3
solnitza
LQ Newbie
 
Registered: Aug 2005
Location: Bucuesti, Romania
Posts: 3

Original Poster
Rep: Reputation: 0
From what I know a ftp server requiers two ports (normally 20 and 21) so...
 
Old 08-26-2005, 04:21 PM   #4
oblivious69
Member
 
Registered: May 2005
Distribution: debian
Posts: 79

Rep: Reputation: 15
look at scponly:

http://freshmeat.net/projects/scponly/
 
Old 08-26-2005, 04:23 PM   #5
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
port 22 is actually a common non-standard port for ftp. Try google for "non-standard ftp ports" and "port 22 ftp"

Are you behind a router?

Last edited by bosewicht; 08-26-2005 at 04:24 PM.
 
Old 08-26-2005, 04:58 PM   #6
solnitza
LQ Newbie
 
Registered: Aug 2005
Location: Bucuesti, Romania
Posts: 3

Original Poster
Rep: Reputation: 0
A friend of mine allready tried using port 22 for a ftp server and it not worked.
I am behind a router, at my ISP, and probably a PIX firewall.

For now I think I can solve it using that scponly shell.

Thanks for helping. I'll be back with more question if that won't work.
 
  


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
How do I restrict a particular user to use only XFCE? rsamurti Slackware - Installation 8 10-25-2006 09:36 AM
restrict user to folder disorderly Linux - Security 5 03-02-2005 10:49 PM
To restrict a specific user simi_virgo Linux - Newbie 1 02-26-2005 01:03 AM
how to restrict the user simi_virgo Linux - Newbie 2 02-25-2005 07:31 AM
Restrict User to FTP Only maxhugen Linux - Security 3 10-23-2003 07:01 PM


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