Results 1 to 7 of 7
Hello community.
Can you please answer how to create new files with default permission 664 instead of 640?
Regards,
sevmax...
- 05-01-2009 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 7
664 permission for new files. how?
Hello community.
Can you please answer how to create new files with default permission 664 instead of 640?
Regards,
sevmax
- 05-01-2009 #2
change your umask
You can change your umask in /etc/profile or /etc/bashrc
Default value should be 022 change it to 026
- 05-01-2009 #3Just Joined!
- Join Date
- Dec 2007
- Posts
- 7
at /etc/profile wasn't those information.
I changed it inside /etc/bashrc
But result the same. When new user create file - it has 640.if [ $UID -gt 99 ] && [ "`id -gn`" = "`id -un`" ]; then
umask 026
else
umask 026
fi
New files are created throught FTP connection. Can it change situation?
- 05-01-2009 #4
- 05-01-2009 #5Just Joined!
- Join Date
- Dec 2007
- Posts
- 7
I set it 022
For SSH access it works, but for FTP access - not. Can you please promt how to create files with 0664 permission throught FTP? To loging at FTP I use real user, not virtual.
- 05-01-2009 #6Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
- 05-01-2009 #7
What ftp server you are using.
if you are using vsftpd.
check this in vsftpd.conf
local_umask=022
anon_umask=022


Reply With Quote
