PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Benutzerrechte ändern



Wormi
18.05.05, 20:05
Hi und hallo,

habe einen User dem ich die Rechte für FTP einschränken möchte. Er soll die Dateien lesen können, neue rauf laden, aber keine löschen können. Wie stelle ich das an? Finde nichts passendes!

EDIT:

Besser wäre noch wenn einer nen Link hätte wo genaueres zu den benutzerrechten steht, udn wie das alles geht!

Blade
18.05.05, 20:53
na und welchen ftp-Server benutzt Du? :ugly:

Wormi
18.05.05, 20:54
proFTPD, ich dachte das wäre egal, da ich den Benutzer ja als System Benutzer angelegt habe.

`kk
18.05.05, 21:31
Hmmm... zum Beispiel so?


<Directory /pfad/>
<Limit DELE>
DenyAll
</Limit>
</Directory>

Schau aber am Besten nochmal selbst nach.
Dokumentation gibts genug, z.B.:
http://proftpd.org/docs/directives/linked/by-name.html
http://proftpd.de/Direktiven.54.0.html

Kai

Wormi
18.05.05, 22:08
Hi, sorry kenne mich mit dem Proggy ienfach nicht aus und komme auch nicht wirklich rein in die Materie.

Habe das jetzt mal in die proftpd.conf eingefügt, aber ich kann in dem Verzeichniss immer noch löschen.



# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody/nogroup" and "ftp" for normal operation and anon.

ServerName "Debian"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowOverwrite on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off

# Uncomment this if you would use TLS module:
#TLSEngine on

# Uncomment this if you would use quota module:
#Quotas on

# Port 21 is the standard FTP port.
Port 21

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~


# Normally, we want files to be overwriteable.
<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022

AllowOverwrite on
</Directory>

AllowForeignAddress on

<Directory /home/sgw09/>
<Limit DELE>
DenyAll
</Limit>
</Directory>


Was läuft da falsch?

`kk
18.05.05, 22:21
Neugestartet hast du proftpd aber?

Wormi
18.05.05, 22:27
Hmm, nien habe ich nicht. Weiß baer auch nicht wie. Kenne mich halt wirklich nicht wirklich aus. Würde mich ja einlesen, aber finde nichts richtiges. Amazon hat zum Beispiel auch kein buch darüber.

Wie starte ich denn neu?

EDIT: Habe jetzt mal /etc/init.d/proftpd restart gemacht und er hat was neu gestratet ;-)
Aber funzt immer noch net

`kk
18.05.05, 22:46
Du brauchst kein Buch, du hast zwei Links. Die reichen dicke. ;)