Operating Systems > Linux and UNIX
Several Questions
Ice-9:
I never set up an ftp server in Linux, but from what I remember setting up Bulletproof FTP server in Windows, I assume in lInux too you can assign one or more directories to a particular account.
the account then only has access to the dirs you assign to it.
Master of Reality:
ummmmmmm..... i think you must chroot the person into a certain directory. "man chroot" but it basically makes whatever directory you want be the users "root" directory, so they cannot go any further down than where you chroot them. you might create a directory like /var/www/usrs/bob and chroot bob into that directory.
fuckoffmicrosoft:
quote:Originally posted by The Master of Reality / Bob:
ummmmmmm..... i think you must chroot the person into a certain directory. "man chroot" but it basically makes whatever directory you want be the users "root" directory, so they cannot go any further down than where you chroot them. you might create a directory like /var/www/usrs/bob and chroot bob into that directory.
--- End quote ---
:confused: do i chroot the dir or the user or both. and the command would be "man chroot blah blah"
fuckoffmicrosoft:
heres what i got and it did nothing
> dir
bin dev home lib opt root tmp var
boot etc initrd mnt proc sbin usr
> cd /var/www/html
> man chroot insane
CHROOT(1) FSF CHROOT(1)
NNAAMMEE
chroot - run command or interactive shell with special
root directory
SSYYNNOOPPSSIISS
cchhrroooott _N_E_W_R_O_O_T [_C_O_M_M_A_N_D...]
cchhrroooott _O_P_T_I_O_N
DDEESSCCRRIIPPTTIIOONN
Run COMMAND with root directory set to NEWROOT.
----hheellpp display this help and exit
----vveerrssiioonn
output version information and exit
If no command is given, run ``${SHELL} --ii'' (default:
/bin/sh).
AAUUTTHHOORR
Written by Roland McGrath.
RREEPPOORRTTIINNGG BBUUGGSS
Report bugs to <[email protected]>.
CCOOPPYYRRIIGGHHTT
Copyright
Master of Reality:
well... you may not want to use chroot.
The "man" command will show the manual page for whatever command you put after "man" so "man chroot" will show the manual page for chroot.
You dont want to chroot the directory though or you would have to move any executables that you want the user to run (such as "ls") you would have to put in the directory that is chrooted.
you might want to search google for documentation on FTP servers.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version