I upgraded my server from FreeBSD 4.10 to FreeBSD 6.2 and found that the chmod command is acting differently since the change. :\
~FreeBSD 6.2~
%mkdir testfolder
%chmod -R 755 testfolder/
%chmod -R 644 testfolder/
%chmod -R 755 testfolder/
chmod: testfolder/: Permission denied
~FreeBSD 4.10~
%mkdir testfolder
%chmod -R 755 testfolder/
%chmod -R 644 testfolder/
%chmod -R 755 testfolder/
% ls -lah | grep testfolder
drwxr-xr-x 2 nicols vuser 512B Feb 19 01:24 testfolder
Is there a behavioral difference I'm missing?
I found the default umask to be the same in both:
FreeBSD 6.2 default umask=022
FreeBSD 4.10 default umask=022
(in case that's pertinent)
~FreeBSD 6.2~
%mkdir testfolder
%chmod -R 755 testfolder/
%chmod -R 644 testfolder/
%chmod -R 755 testfolder/
chmod: testfolder/: Permission denied
~FreeBSD 4.10~
%mkdir testfolder
%chmod -R 755 testfolder/
%chmod -R 644 testfolder/
%chmod -R 755 testfolder/
% ls -lah | grep testfolder
drwxr-xr-x 2 nicols vuser 512B Feb 19 01:24 testfolder
Is there a behavioral difference I'm missing?
I found the default umask to be the same in both:
FreeBSD 6.2 default umask=022
FreeBSD 4.10 default umask=022
(in case that's pertinent)