Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export X displays to the world and setting the umask for cron programs

Status
Not open for further replies.

menace212

Programmer
Jul 11, 2003
144
US
I attempting to stop exporting X displays to the world , how do I set the permisssions for this. Where is this file? I have a Sun Solaris 8 box.


How do I set the umask to 077 for the cron programs
 
You need to make a directory named /etc/dt/config.
Code:
mkdir -p /etc/dt/config
You need to copy Xresources and Xconfig from /usr/dt/config
Code:
cp /usr/dt/config/Xresources /etc/dt/config
cp /usr/dt/config/Xconfig /etc/dt/config
I forgot which file it is but there is an option to turn it off I think it has got the word Port in it. After you comment that out of the file, restart CDE (/etc/init.d/dtlogin stop && /etc/init.d/dtlogin start).

To set the cron umask you can either add umask 0077 in /etc/profile, /etc/.login or directly to the script I believe.
 
thanks...One more question for you though..Can I use /etc/dt/config to put a login banner in there as well...

Thanks for the answer...
 
Do you mean sort of like a disclaimer with a yes or no button? You can create those but I think CDE does not support natively you will need to have it call up a script to perform this function for you. I know where I work there is a Pyhton script they use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top