/ Forside / Teknologi / Hardware / Mac / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Mac
#NavnPoint
UlrikB 4810
kipros 1675
Klaudi 1010
myg 920
pifo 907
Stouenberg 838
molokyle 830
Bille1948 815
rotw 760
10  EXTERMINA.. 750
Terminal
Fra : David Blangstrup


Dato : 10-09-02 07:10

Nu har jeg jo respekt for Terminalen-->Jeg har gjort dette: [langt citat,
spørgsmålet er i bunden]:

With the release of 10.0.2, Apple has included an upgraded FTP server that
makes it easier to control which directories FTP users can utilize. This is
done using an 'ftpchroot' file, which makes each listed user's home directory
appear as the root of the system via FTP, so there's no way they can move
"up" out of their directories.

Implementing 'ftpchroot' is quite simple, but it does require a bit of
editing work as root. If you'd like to restrict your FTP users to their own
directory, read the rest of this tip.
This only works for users who exist as users on your system. You may want to
create a generic 'ftpuser' for such purposes. For this example, we'll assume
you have two users, 'tom' and 'ftpuser', and you'd like to restrict both of
them to their home directories.

1.   Open a terminal and type cd /etc to change into the 'etc' directory.

2.   We'll use pico as the text editor, since this is a very simple file. Type
sudo pico ftpchroot and enter your normal admin user's password when
prompted.

3.   When the file opens, simply type each user's short name on a line of its
own:

ftpuser
tom
4.   Save the file by typing Control-X.
That's it! You've created the file you need to restrict FTP users' access.

Sorry for det lange citat! Jeg afsluttede med at taste Y, for det stod
der at man skulle for at bekræfte. Var det rigtigt? Og da jeg lukkede
Terminalen (med stort T) stod der, at jeg nu afbrød pico og bla bla. Er det
så gennemført ellerŠ?
- David

--
David Blangstrup
Allerød, Danmark
http://david.blangstrup.dk
iChat://davidbeatnik



 
 
David Blangstrup (10-09-2002)
Kommentar
Fra : David Blangstrup


Dato : 10-09-02 08:05

On Tue, 10 Sep 2002 8:09:42 +0200, David Blangstrup wrote
(in message <0001HW.B9A3594600009297F0284600@news.cybercity.dk>):

> Nu har jeg jo respekt for Terminalen-->Jeg har gjort dette: [langt citat,
> spørgsmålet er i bunden]:

> With the release of 10.0.2, Apple has included an upgraded FTP server that
> makes it easier to control which directories FTP users can utilize. This is
> done using an 'ftpchroot' file, which makes each listed user's home
> directory
> appear as the root of the system via FTP, so there's no way they can move
> "up" out of their directories.

> Implementing 'ftpchroot' is quite simple, but it does require a bit of
> editing work as root. If you'd like to restrict your FTP users to their own
> directory, read the rest of this tip.
> This only works for users who exist as users on your system. You may want to
> create a generic 'ftpuser' for such purposes. For this example, we'll assume
> you have two users, 'tom' and 'ftpuser', and you'd like to restrict both of
> them to their home directories.

> 1.   Open a terminal and type cd /etc to change into the 'etc' directory.

> 2.   We'll use pico as the text editor, since this is a very simple file. Type
> sudo pico ftpchroot and enter your normal admin user's password when
> prompted.

> 3.   When the file opens, simply type each user's short name on a line of its
> own:

> ftpuser
> tom
> 4.   Save the file by typing Control-X.
> That's it! You've created the file you need to restrict FTP users' access.

> Sorry for det lange citat! Jeg afsluttede med at taste Y, for det stod
> der at man skulle for at bekræfte. Var det rigtigt? Og da jeg lukkede
> Terminalen (med stort T) stod der, at jeg nu afbrød pico og bla bla. Er det
> så gennemført ellerŠ?
> - David


Nå, jeg har selv prøvet ftp://192.168.1.55 og logget ind som user:ftpuser og
password: anon ‹> men ovenstående har ikke virket, for man kan godt gå op i
direktoriet herfraŠ selvom man ikke har adgang. Hvad har jeg gjort forkert?

--
David Blangstrup
Allerød, Danmark
http://david.blangstrup.dk
iChat://davidbeatnik



Povl H. Pedersen (10-09-2002)
Kommentar
Fra : Povl H. Pedersen


Dato : 10-09-02 19:02

#1 din maskine tager ikke imod ftp forbindelser
#2 Det er muligt at du skal genstarte, men jeg tror det ikke.

Hvad står der i /var/log/ftp.log ?
Du kan se filen med:
less /var/log/ftp.log

den indeholder eventuelle fejlbeskeder og staus.

Søg
Reklame
Statistik
Spørgsmål : 177514
Tips : 31968
Nyheder : 719565
Indlæg : 6408622
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste