Ik heb een "klein" probleempje met Proftpd op Freesco.
Ik heb een webservertje draaien met daaronder allemaal verschillende directories.
Voorbeeld met dir1 en dir2:
Ik heb de usernames dir1 en dir2 aangemaakt.
Hoe moet ik nu instelling in het proftpd.conf bestand dat als je inlogd als dir1 met bijbehorend wachtwoord dat die als homedir zijn eigen dir ziet, met volledige rechten?
Wie kan me hierbij helpen?
Ik heb al veel gezocht op de officiële site van proftpd en forums gelezen op linux sites.
Hieronder mijn proftpd.conf:
Ik heb een webservertje draaien met daaronder allemaal verschillende directories.
Voorbeeld met dir1 en dir2:
code:
1
2
3
4
| /mnt/router/www/
/dir1/
/dir2/
(enz) |
Ik heb de usernames dir1 en dir2 aangemaakt.
Hoe moet ik nu instelling in het proftpd.conf bestand dat als je inlogd als dir1 met bijbehorend wachtwoord dat die als homedir zijn eigen dir ziet, met volledige rechten?
Wie kan me hierbij helpen?
Ik heb al veel gezocht op de officiële site van proftpd en forums gelezen op linux sites.
Hieronder mijn proftpd.conf:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
| # BOF # # Doc Nielsen's Custom made proftpd.conf # Should work on all Freesco Systems # This file was created while my winamp was playing # Britney Spears - I Love Rock'n'Roll # And therefore might be a bit girlish ;o) # # Server Main Variables ServerNameIII"DAALNET FTP" ServerTypeIIIstandalone ServerIdentIIonI"DAALNET FTP" ServerAdminIII" devon@kroketnet.nl " # Change to your email address PortIIII21 DefaultServerIIon DeferWelcomeIIon RootLoginIIon IdentlookupsIIoff UseReverseDNSIIoff # Names can be spoofed. IP's can't be spoofed that easily LoginPasswordPromptIoff #PassivePortsIII60000 60050 #MasqueradeAddressIIftp.docnielsen.dk # Change to your dyndns name # UmaskIIII0133I0022 UserInobody GroupInobody DefaultRootIII~ DefaultChdirIII~ AuthUserFileIII/etc/passwd AuthGroupFileIII/etc/group UseFtpUsersIIon PersistentPasswdIon AccessGrantMsgIII"Access granted! Welcome %u!" # # Load Balancing MaxClientsPerHostII10I"Sorry, you may not connect more than 10 times." MaxClientsIII30I"Sorry, the maximum number of allowed users are already connecte MaxLoginAttemptsII5 MaxInstancesIII50 MaxLoadIII10.0I"Server is busy. Seek life elsewhere..." # # Timeouts TimeoutIdleIII999 TimeoutLoginIII10 TimeoutNoTransferII999 TimeoutStalledIII60 # # Speed Limits RateReadBPSIII10480 RateWriteBPSIII10480 RateReadFreeBytesII10480 RateWriteFreeBytesII10480 RateReadHardBPSIIon RateWriteHardBPSIon # # Please check the mod_time config webpage for config tips # http://www.castaglia.org/proftpd/modules/mod_time.html #DisplayAfterHoursI/var/proftpd/AfterHours.txt #NamedTimeIall-hoursI00:00:00-23:59:59I* # from midnight to midnight #NamedTimeInormal-hoursI08:00:00-17:00:00I1-5 # from 8am to 5pm #NamedTimeIafter-hoursI!08:00:00-17:00:00I0,6 # from 5pm to 8am #CommandTimesIallInormal-hours # evryone may log in 8am to 5pm #GroupCommandTimesIusersIallIall-hours # users may log in at all times #UserCommandTimesIrootIallIall-hours # root may log in at all times #UserCommandTimesInobodyINONEIall-hours # anonymous may do nothing at all # # Please check the mod_quotatab config webpag for help # http://www.castaglia.org/proftpd/modules/mod_quotatab.html # http://www.castaglia.org/proftpd/modules/ftpquota.html # QuotaTab settings #QuotaEngineIIIoff #QuotaLimitTableIIfileI/var/proftpd/FTPQuota.DB #QuotaLogIII/var/proftpd/FTPquota.log #QuotaTallyTableIIfileI/var/proftpd/FTPTally.DB #QuotaDisplayUnitsII"Kb" # # Quota settings #QuotasIoff #DefaultQuotaI1024 #QuotaTypeIsoft #QuotaCalcIoff #QuotaExemptI0 #no quota for uid 0 (root) #QuotaBlockSizeI1 #QuotaBlockNameI"byte" # # Ratio settings #RatiosIoff #SaveRatiosIoff #RatioFileI/etc/proftpd.ratio #RatioTempFileI/etc/proftpd.ratio.temp #CwdRatioMsgI"Please upload!" #FileRatioErrMsgI"Come on, you can send more files than that...." #LeechRatioMsgI"You have Unlimited Leech Access!" #UserRatioIrootI0 0 0 0 # Leech Access to root #HostRatioI192.168.1.10I100 10 5 100000 # 100:1 files, 10 file credit, 5:1 bytes #GroupRatioI0I4 100 105 100000 #AnonRatioIbillyg@microsoft.comI1 0 1 0 # 1:1 ratio, no credits # # Logging (makes 1 big logfile, and outputs logins to tty7) SystemLogIII/dev/tty7 SyslogLevelIIIwarn TransferLogIIINONE LogFormatIxfer_fmtI"%t %a %u (%r) %f" ExtendedLogII/var/proftpd/proftpd.logIauth,read,writeIxfer_fmt ScoreboardPathII/var/proftpd/score/ # <Global> <Limit LOGIN> IAllow from All IIgnoreHiddenIIon </Limit> AllowForeignAddressIon PathDenyFilterIII"(^|/)[-.~]" # ignore+hide files starting with - . ~ AllowOverwriteIIon UseGlobbingIIIoff </Global> # <Directory ~> AllowStoreRestartIon AllowRetrieveRestartIon HideNoAccessIIon </Directory> # Disable Anonymous completely <Anonymous /tmp> UserIIIInobody GroupIIIInobody UserAliasIIIanonymous nobody MaxClientsIII10 <Limit All Login> Deny From All DenyAll </Limit> </Anonymous> # EOF |