The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Should Paris Hilton be in Jail? Neo What's on Your Mind? 9 06-22-2007 10:43 AM
FBSD jail question thumper UNIX for Advanced & Expert Users 1 05-11-2007 08:38 AM
Home Directory Jail for Users mz043 UNIX for Dummies Questions & Answers 3 04-18-2007 02:14 PM
I don't want to go to jail. so I want to start using unix moz1979 UNIX for Dummies Questions & Answers 0 03-11-2007 03:13 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-06-2004
byblyk byblyk is offline
Registered User
  
 

Join Date: Mar 2004
Posts: 92
how can i jail a user?

I created a user
useradd -d /disk2/ftpfiles me

How would i beable to jail me so he could not move arround my file system?
  #2 (permalink)  
Old 04-07-2004
TioTony's Avatar
TioTony TioTony is offline Forum Advisor  
Bit Pusher
  
 

Join Date: Oct 2001
Location: Southern California
Posts: 332
I don't think you will get a simple answer on this one. You may want to google for chroot or restricted shell. It really depends on how much effort you want to put into it and what kind of access the users will have. If you plan to only give a user FTP access, chroot may work. If they are only telneting, ksh -r (restricted shell) may work. In either case there is a tedious set up and you have to be very meticulous about your permissions and umasks. I have played with chroot and ksh -r a few times but have never really had the need to fully jail users in the environments I have worked in. Someone from an ISP may be able to give you more guidance but I figured something was better then nothing.
  #3 (permalink)  
Old 04-07-2004
byblyk byblyk is offline
Registered User
  
 

Join Date: Mar 2004
Posts: 92
Thanks, i did lots or reading lastnight bout jailing users but most of the websites for it is for proftp, i'll look up restricted shells though. I'm jsut setting up an FTP for myself and my friends, there not really rocket scientists so i just want to prevent them from doing somthing stupid accidentaly. My professor showed me a really easy way last semester, i'm going to try to hunt him down today and find out what that was. Thanks.
  #4 (permalink)  
Old 04-12-2004
Farlon Farlon is offline
Registered User
  
 

Join Date: Apr 2004
Location: Sweden
Posts: 1
Im guessing your useing ProFtp?

If thats the case, and you whant to "jail" a user
you could simply change/make a line in the config file

My conf file is in - /etc/proftp.conf
simply put this line in it:

DefaultRoot "~"

that would make the users home dir the absolute root for the user.

it is still possible to login via telnet/ssh/rlogin with that
user and pass. So thats a problem.

Ive tryed to put (in /etc/passwd file) /false instead of like /bash
as shell, but that will only make the ftp to deny access
  #5 (permalink)  
Old 04-12-2004
byblyk byblyk is offline
Registered User
  
 

Join Date: Mar 2004
Posts: 92
Actuily i'm using Wu-ftp but i'm in the process of setting up my system again so i may this time use ProFtp, just cause it seems to be so popular.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 02:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0