To continue to try and troubleshoot this issue, does anyone know why I'm having this issue:
Code:
fozzy@file-serv:/home/sftp/files$ ls -l
-rw-r--r-- 1 root sftponly 0 2009-04-02 14:39 file1.txt
fozzy@file-serv:/home/sftp/files$ umask
0022
fozzy@file-serv:/home/sftp/files$ umask 077
fozzy@file-serv:/home/sftp/files$ umask
0077
fozzy@file-serv:/home/sftp/files$ sudo touch file2.txt
fozzy@file-serv:/home/sftp/files$ ls -l
-rw-r--r-- 1 root sftponly 0 2009-04-02 14:39 file1.txt
-rw-r--r-- 1 root sftponly 0 2009-04-02 14:39 file2.txt
I then tried to edit /etc/profile
Code:
fozzy@file-serv:/home/sftp/files$ sudo vim /etc/profile
----
#umask 022
umask 077
:wq
----
fozzy@file-serv:/home/sftp/files$sudo reboot
^^^^^ login ^^^^^
fozzy@file-serv:~$ cd /home/sftp/files
fozzy@file-serv:/home/sftp/files$ umask
0077
fozzy@file-serv:/home/sftp/files$ sudo touch file3.txt
fozzy@file-serv:/home/sftp/files$ ls -l
-rw-r--r-- 1 root sftponly 0 2009-04-02 14:39 file1.txt
-rw-r--r-- 1 root sftponly 0 2009-04-02 14:39 file2.txt
-rw-r--r-- 1 root sftponly 0 2009-04-02 14:39 file3.txt
I'm not following why I'm still not getting the umask being set via touch. I'm assuming the newly created file should be "-rw-------".
Any thoughts as to this step? I'm guessing this might be part of the issues I'm experiencing. I'm also looking into setting pam_umask to see if that will work.
Fozzy
Bookmarks