umask wird nicht korrekt gesetzt...

Alles, was den ProFTPD betrifft, kann hier besprochen werden.

umask wird nicht korrekt gesetzt...

Postby truhe » 20. April 2004 00:03

hi :)

ich habe hier ein merkwürdiges problem mit meinen proftpd: die umask für neue dateien wird scheinbar ignoriert. im webmin habe ich bei standard-server für dateien 644 und für verzeichnisse 755. neuen dateien werden aber so angelegt, dass niemand lesen, niemand ausführen und die gruppe und andere schreiben können. ich, als anlegender user, habe keinerlei rechte auf die datei.

-----w--w- 1 truhe users 85290 Apr 19 20:45 iTunes.html

die config sieht eigentlich so auch ok aus:

# 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" and "ftp" for normal operation and anon.

ServerName "ProFTPD"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 644 755

# 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

# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
AllowOverwrite on
Umask 644 755
</Directory>

# only for the web servers content
DefaultRoot ~
DefaultRoot /opt/lampp/htdocs

# nobody gets the password "lampp"
# commented out by lampp security
#UserPassword nobody wRPBu8u4YP0CY
UserPassword nobody 4UKsrlM/ss8UA

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
<Global>
RootLogin off
DeleteAbortedStores on
HiddenStor on
ShowSymlinks on
DisplayConnect /opt/etc/ssh_login_msg
</Global>
DeleteAbortedStores on
HiddenStor on
DirFakeGroup off
DirFakeUser off
ShowSymlinks on

was mache ich da falsch?
truhe
 
Posts: 4
Joined: 09. February 2004 08:25

Postby mAy^daY » 02. June 2004 15:43

http://www.proftpd.de/Direktiven_Liste.28.0.html#206

les dir das mal durch
"umask 022" wäre "644"
mAy^daY
 
Posts: 16
Joined: 07. March 2004 12:43

danke :)

Postby truhe » 02. June 2004 21:24

genau das wars :)
truhe
 
Posts: 4
Joined: 09. February 2004 08:25

Postby cH40z-Lord » 29. November 2007 17:16

mAy^daY wrote:http://www.proftpd.de/Direktiven_Liste.28.0.html#206

les dir das mal durch
"umask 022" wäre "644"


Der Link geht nicht, bzw zeigt mir bei Firefox und IE6 nichts mehr an >.<
cH40z-Lord
 
Posts: 2
Joined: 27. November 2007 21:24
Location: Stuttgart


Return to ProFTPD

Who is online

Users browsing this forum: No registered users and 3 guests