02-25-2008
Ok people I have found something.
After unsuccessful attempt with Proftpd I have tried standard ftpd demon and has received same result =\
I don't know what do next ...
In FTP UMASK x - permissions alway disappear !
When i'm set umask 002, that 0 - logically should be so
-rwx .... - 0 the FULL permissions !
but it always
-rw- ....
Why ? Where disappears X ?
It's situation anywhere even Linux and with alway ftp servers =\
Who can help me ? Please ;(
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone, I was wondering how to configure ftp access for one user when I found this board.
After some searches I found my infos around proftpd (and the great config file proftpd.conf who answered to all my dreams...)
but now I only need to stop proftpd and restart it (I guess it is needed... (1 Reply)
Discussion started by: Lomic
1 Replies
2. UNIX and Linux Applications
i want to use proftpd to create a ftp server, does anyone have any good web manager tools to mange the ftp site ? (3 Replies)
Discussion started by: yarx
3 Replies
3. IP Networking
hi,all:
i set "MaxStoreFileSize 20 Mb" on proftpd.conf, this parameter limit everyone to upload file less than 20M, but i want to permit one user "fred" can upload file size more than 20 Mb, how to set it ?
if i set:
MaxStoreFileSize 20 Mb
MaxStoreFileSize 100 Mb user fred
but they... (2 Replies)
Discussion started by: yarx
2 Replies
4. UNIX for Dummies Questions & Answers
Hi eveyone,
Im newb in Unix. I just install solaris 10 on my VM. First program i install is midnight commander and did successful. The way i do is get binary packet from sunfreeware then add and edit the PATH variable.
My next program is ProFtpd i did same way :D. Add packets... (4 Replies)
Discussion started by: tien86
4 Replies
5. Solaris
If I use an old inetd based service that specified /usr/sbin/tcpd for proftpd, do I have to include that when I use inetconv to create the service manifest.
For example.
I currently use proftpd for ftp with tcp_wrappers. My old inetd line was
ftp stream tcp nowait root /usr/sbin/tcpd... (2 Replies)
Discussion started by: csross
2 Replies
6. AIX
I need to install proftpd on AIX 6.1 . I cant compile it from source cod because of lacking gCC compiler.. so is there any AIX proftpd package to install (3 Replies)
Discussion started by: wwwzviadi
3 Replies
7. AIX
Hi.
I want to install proftpd on an AIX 7.1, but the only proftpd-1.2.8-1.aix5.1.ppc.rpm is available and it doesn't want on be installed :
error: proftpd-1.2.8-1.aix5.1.ppc.rpm cannot be installed
Any help (other than compilation) ?
tks (0 Replies)
Discussion started by: stephnane
0 Replies
UMASK(3) 1 UMASK(3)
umask - Changes the current umask
SYNOPSIS
int umask ([int $mask])
DESCRIPTION
umask(3) sets PHP's umask to $mask & 0777 and returns the old umask. When PHP is being used as a server module, the umask is restored when
each request is finished.
PARAMETERS
o $mask
- The new umask.
RETURN VALUES
umask(3) without arguments simply returns the current umask otherwise the old umask is returned.
EXAMPLES
Example #1
umask(3) example
<?php
$old = umask(0);
chmod("/path/some_dir/some_file.txt", 0755);
umask($old);
// Checking
if ($old != umask()) {
die('An error occurred while changing back the umask');
}
?>
NOTES
Note
Avoid using this function in multithreaded webservers. It is better to change the file permissions with chmod(3) after creating the
file. Using umask(3) can lead to unexpected behavior of concurrently running scripts and the webserver itself because they all use
the same umask.
PHP Documentation Group UMASK(3)