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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TimeZone for All Accounts 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

In doing research I can see that setting the Time zone can be done via export TZ=<Timezone Required>.

Is there a system-wide level way of setting the timezone so as all user accounts will use it?


Thanks,

Michael42
 
Timezone for the entire system is set in the /etc/default/init file. For example: TZ=US/Eastern
 
bi,

Thanks for your help! Sometimes I feel the more I know about UNIX the more there is to know. :)

This directory (/etc/default/init) seems to control many things.

1. What would you say it's purpose is?
2. What other common &quot;things&quot; are controled here?


Thanks,

Michael42
 
Hi Team,

As a general check on sun server, I have identified that the most of the commands in the /usr/sbin have been corrupted (zero bytes), and also some files in the /sbin directory. Also found that there are too many &quot;defunct&quot; processes on the server, since I'm unable to execute any command on the server (I'm getting &quot;Fork-Failed too many processes) error.

I have fixed this error by copying the corrupted commands from the CD and now the server is working fine.

Anyone pls. let me know what could be the root cause for this problem? and what could be done to prevent these kind of corruptions? Your great inputs are welcomed

Thanks in advance..!

Regards,
V Ramesh
Sun-Administrator


 
reinstall from scratch if you can, might be someone has hacked in.

patch your system with at least the recomended patches from Sun.


how many users know the root password? you could change it. how many non-standard apps do you have? are they the latest versions/secure versions?
 
Michael42,

Yes, the more you know, the more you realize what you don't know.

Yes, /etc contains a lot of important files and directories. You can look at all the files in /etc/default to see what's in them. Some of the files have decent documentaiton within them.

Here's what I know about some of them:

/etc/default/cron: determines whether a log file is kept for cron jobs. This affects all users who have permission to run cron jobs.

/etc/default/fs: specifies what the default filesystem type is.

/etc/default/login: specifies various items, which are documented fairly well in the file. This is the file you edit if you want root to be able to login from someplace other than the console (not recommended for security reasons). This also is the file that contains SLEEPTIME. This is the parameter that determines how long the lag is before you get another login prompt if you put the wrong password in. I have mine set to 0 so I don't have to wait for another login prompt when I type the wrong password.

/etc/default/passwd: specifies default files for passwords.

/etc/default/su: determines whether all su attempts are logged and where they are logged to.

As I said, this is just some of the files in /etc/default.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top