Regarding Time Stamping in the FTP Server

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Regarding Time Stamping in the FTP Server
# 1  
Old 02-13-2009
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  
Old 02-17-2009
Please explain what you mean the FTP server timing is GMT?
# 3  
Old 02-17-2009
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  
Old 02-19-2009
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  
Old 02-20-2009
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  
Old 02-20-2009
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Implement FTP server on RHEL server without using FTP client

We have RHEL 5.8 in our environment, I had a query whether we can implement an FTP server using vsftpd package and Linux configurations like setsebool without using any external FTP clients like FileZilla etc. I am very confused on this. The FTP functionalities that should be present are download &... (3 Replies)
Discussion started by: RHCE
3 Replies

2. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

I have a cluster of two Solaris server (veritas cluster). one working and the other is standby I am going to change the date on them , and am looking for a secure solution as it is giving an important service. my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies

3. Shell Programming and Scripting

Ftp script hangs for first time,but works every second time

Hi I have an ftp script which works fine when i execute through a test scheduler(UC4), but when i run it through the prod scheduler(UC4), it hungs indefinetely, when we cancel the job and re-run it it works perfectly fine. here is the code,, any idea why this is happening ???? ... (1 Reply)
Discussion started by: selvankj
1 Replies

4. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

5. Red Hat

when users ftp to server the timezone reflected is UTC but the server is set to TZ in localtime

Guys, Need your help coz my server runs in local time GMT +8, but when client use ftp and login, the resulting timestamp seen in each file is in UTC format. We need to set that the time should be the same as GMT +8 when in ftp session. I am using RHEL 5.3. root@]# ll total 1740... (2 Replies)
Discussion started by: shtobias
2 Replies

6. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

7. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies

8. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

9. Shell Programming and Scripting

FTP - Get the file date and time on the remote server

I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies

10. Shell Programming and Scripting

Stamping Text on an Image File

Hi all, again, I have lots of questions I guess. This one should be easier though :) . I have a goal to be able to put some preformatted text into a template (which is now a tiff file, but can be changed) and then output it to a printer. Right now we're thinking PostScript might work or some... (0 Replies)
Discussion started by: pageld
0 Replies
Login or Register to Ask a Question