Is there a way to set default file rights when a user FTPs into the AIX box,
and puts a file?
refresh -s inetd
edit the file /etc/inetd.conf and search for the line ftpd.Quote:> Is there a way to set default file rights when a user FTPs into the AIX box,
>and puts a file?
ftp stream tcp nowait root /usr/sbin/ftpd ftpd -u OCTVAL
Where -u = umask value & OCTVAL is the octal umask value . The default is 027 which is equal to rw-r----- permissions.
Then either refresh the inetd daemon with : -
refresh -s inetd or just the ftpd daemon with refresh -t ftpd.
Hope this helps
Disclaimer: my opinions are my own
I am a "rookie" HP-UNIX Sys Adminstrator.
I want FTP to be default at -rwxrwxrwx for all files. I don't want the
system default like -rw-rw-rw- or whatever.
I tried "umask" in the profile file (setting umask to 0) and I got the
system default mode like -rw-rw-rw-. I tried the ftpd command in the
"inetd.conf" configuration file and I still got the system default. How can
I "bypass" this system default ? What does the system default come from ?
I really hope it's possible.
Let you know that I am not interested in "anonymous" FTP.
Any recommedation or suggestion ?