LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-14-2003, 03:13 AM   #1
SpaceCadet
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
chRoot


Well I just got proftpd up and running finally but one thing i did notice is that when I connect to the server I am able to view the entire directory of my hard disk! I know that chroot solves this problem, and don't tell me to add DefaultRoot ~ cuz I did that allready and it didn't even touch my file permissions. I heard from somewhere that I'm supposed to add certain folders to the home directories of each user so that proftpd can propogate the proper files to those folders. Anyway this is really stumping me I tried everything through webmin and I got so far, at least I can still view the whole directory tree of my hard drive but I can't download/upload or modify any files to those directories. I guess this is good enough, but still though, kindof a pain. Thanks in advance for any replies
 
Old 08-14-2003, 03:44 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Really, that is what you add:
DefaultRoot ~

After changing the proftpd.conf file you'll need to restart the server. To do that, check:
ps aux | grep ftp
And note the PID of the process, then:
kill -HUP pid
Where pid is the number you grabbed from ps. If you are running this in xinetd or inetd mode, then you'll wanna send HUP's to those services instead.

Cool
 
Old 08-14-2003, 04:48 AM   #3
SpaceCadet
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
ah! didn't realize I had to restart the server
 
Old 08-14-2003, 05:29 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64


You can alternatively (not recommended by me though since we are after all, in linux..) do a reboot, this restarts your server as well

Cool
 
  


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
chroot help Smokey Slackware 15 02-24-2013 11:32 PM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
CHROOT help quozt Linux - Networking 1 08-22-2003 02:12 PM
Chroot chamkila Linux - General 1 06-13-2003 05:46 AM
Better than chroot? radnix Linux - Security 5 12-20-2002 06:55 PM


All times are GMT -5. The time now is 08:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration