The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Network Time server mm00123 SUN Solaris 14 04-14-2008 08:47 AM
adding time server aladdin UNIX for Dummies Questions & Answers 4 08-09-2007 08:04 AM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-22-2007 02:20 AM
time server fsmadi SUN Solaris 1 03-05-2007 09:33 AM
Stamping Text on an Image File pageld Shell Programming and Scripting 0 04-29-2004 05:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-13-2009
kingganesh04 kingganesh04 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 40
Regarding Time Stamping in the FTP Server

How can i change the FTP Server time stamping?

Problem is

1. Our server timing is
Fri Feb 13 14:17:22 SGT 2009

2. Out FTP Server timing is GMT

Can anyone tell me how can i make the FTP Server timing is our local timing?
  #2 (permalink)  
Old 02-17-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,886
Please explain what you mean the FTP server timing is GMT?
  #3 (permalink)  
Old 02-17-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,754
filetimes - (mtime, ctime, and atime) if that is what you are talking about - are always set to UTC (GMT). When you login to a box, the login changes the TZ variable (or whatever your system does to set the timezone) of the login process.

So, when ever you call "ls" or anything else that shows filetimes, it gets translated to the local timezone. As defined above.

If you can change the TZ variable to GMT (or whatever the ftp server does to set timeszones) for ftp users at login/connect then you can do what you want. I personally do not know how to do that. I assume it is a property of the time setting in the ftpd process. So when you start ftpd as root, on the ftp server, it needs to think it is in the GMT timezone.
  #4 (permalink)  
Old 02-19-2009
sixstrings sixstrings is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 33
If you are using vsftpd, there is a time setting in there to use either the local server time or not. I believe the default is GMT for some reason.

Use this setting in your config

use_localtime=yes
  #5 (permalink)  
Old 02-20-2009
kingganesh04 kingganesh04 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 40
If i want to set this one i need to restart the server. Without restarting the server anyway to set "use_localtime=yes".

Please advise me.
  #6 (permalink)  
Old 02-20-2009
sixstrings sixstrings is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 33
you don't have to restart the entire server, you just need to restart the vsftpd daemon. It will take about 5 seconds to re-source the file.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0