LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-22-2008, 03:34 PM   #1
delmoras
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Rep: Reputation: 0
linux user add


hello I would like to add a new user to my box but when he will connect to it with ftp he will only have access to a particular folder . is this possible? can anyone give me an example ?
 
Old 12-22-2008, 04:11 PM   #2
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
You don't need to add a new user if you mean someone who is connecting to your computer through a network link.

You do need to set up an ftp server, or use NFS (which might be a better option if you can work this out with the person who is planning to connect).
 
Old 12-22-2008, 04:21 PM   #3
delmoras
LQ Newbie
 
Registered: Nov 2005
Posts: 18

Original Poster
Rep: Reputation: 0
hello, thanks for your reply , by my mistake I clicked report instead of reply I am so tired ... I hope that this doesn't create any problems to none of as..

Anyway I have an ftp server . Do you know how will I add a user who will see only the specified folder when he will connect with ftp?
 
Old 12-22-2008, 05:42 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by delmoras View Post
hello, thanks for your reply , by my mistake I clicked report instead of reply I am so tired ... I hope that this doesn't create any problems to none of as..

Anyway I have an ftp server . Do you know how will I add a user who will see only the specified folder when he will connect with ftp?
don't worry about the "report" mistake---it happens.

I believe the trick is to first name the users that are allowed to login to the ftp server, create their passwords, etc.

Then simply change the permissions and ownership of specific directories to control access (just as you would do on a Desktop).

The ftp server documentation should tell you how to create users.
 
Old 12-22-2008, 06:11 PM   #5
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
You could also look into different FTP services, something like vsftp... can jail the user into a specific directory, thus that user can when logged in to ftp only see that directory and its sub-directories. They shouldn't be able to then see anything else on the system.

Cheers,
MJ
 
  


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 to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
Do you know how to add an ftp user in Linux? amtoj Linux - Newbie 5 08-29-2008 07:29 AM
Creating new users in linux without using addmod or user add frankthetank250 Linux - Newbie 5 10-29-2007 03:24 AM
Creating new users in linux without using addmod or user add frankthetank250 Linux - Newbie 1 10-28-2007 10:02 PM
How to add a user in linux to be strong as root juanb Linux - Security 4 09-22-2004 04:12 AM


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