Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-04-2011, 03:05 PM   #1
Registered: Jun 2010
Posts: 30

Rep: Reputation: 0
User Restriction

Hey guys,

I have a fedora cloud server . How do i force a user to only see a particular folder when they log on? I would not want the user to be able to access or see any other folder than that one?

The reason y i ask is that we have a non-techie that needs to upload large amounts of files.

Any help would be great

Old 02-04-2011, 07:06 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
There are several things you can do. The first thing that comes to mind is that the individual might not need to log on to the server at all. They could use ftp from another machine to put the files on the server. Or you could export a directory for that person to mount via Samba or NFS.

Another approach would be to use a chroot jail.

You could use a restricted bash shell (rbash) and you could make their login script call a menu that logs off when they exit it.

All of these things are well documented. You should be able to find information on all of them using Google.

Last edited by stress_junkie; 02-04-2011 at 07:08 PM.


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
provide restriction to user pankajkarde Linux - Security 2 03-02-2007 04:29 AM
Squid User Restriction ajkannan83 Linux - Software 2 06-29-2006 04:41 AM
User account restriction Linux - Newbie 2 04-21-2005 10:58 PM
User restriction on SSH RKris Linux - Software 5 06-22-2003 11:38 AM
Restriction on user logins klmn1 Linux - Networking 2 05-26-2003 05:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration