I have an ftp process that is connecting to a Solaris server and pushing files into a directory. The default file permissions are rw-r--r-- . I want the file permissions to be rw-rw-r--. How can I configure the directory so any file created there will have the permissions rw-rw-r-- ?
Thanks
*Note the permissions on the directory are drwxrwxr-x
Thanks for the feedback. Unfortunately the umask permissions are active only during my session. When I sign in again, umask permissions are gone. I can add the umask command to the .profile for this user, unfortunately the ftp connection does not utilize the .profile and those settings are not applied when ftp connection is made.
I thought there was a sticky bit command I could use(chmod g+s ... {directory}), but not sure.
Define "sign in". If you tell us how you can connect, there are some solutions:
scp -p will preserve file protections and ownership from the local side -> the remote side.
FTP and sftp do not execute "shell" commands, except ones on the local side of the connection.