Set default umask for users
Hi,
I think the following code is trying to change the settings inside the file:
CISum=’077’
sed -e "s/002/$CISum/" -e "s/022/$CISum/" /etc/bashrc-preCIS > /etc/bashrc
sed -e "s/002/$CISum/" -e "s/022/$CISum/" /etc/csh.cshrc-preCIS > /etc/csh.cshrc
sed "s/027/$CISum/" /etc/csh.login-preCIS > /etc/csh.login
sed "s/027/$CISum/" /etc/profile-preCIS > /etc/profile
echo "umask $CISum" >> /etc/skel/.bashrc
sed "s/027/077/" /root/.bash_profile-preCIS > /root/.bash_profile
But, what if i only want to check what the settings are inside the file, but does not want any changes to the file. What are the appropriate commands that i can use? Thanks.
|