Operating System - HP-UX
1830493 Members
2893 Online
110005 Solutions
New Discussion

Date in restricted ftp is not correct

 
SOLVED
Go to solution
Lukas Grijander
Advisor

Date in restricted ftp is not correct

Hello all. I??m having the next problem ... :

Telnet session :

# ll CA43600NC209XU.200203315*
-rw-r--r-- 1 sag sag 21311 Mar 31 05:17 CA43600NC209XU.2002033150040G

# cat /etc/TIMEZONE

TZ=MET-1METDST
export TZ

# set | grep -i tz
TZ=MET-1METDST

Now a ftp conection to this box with login user root :

ftp> dir CA43600NC209XU.200203315*
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
-rw-r--r-- 1 sag sag 21311 Mar 31 05:17 CA43600NC209XU.2002033150040G
226 Transfer complete.

As we can see is the same file date/time, but let??s do a restricted ftp user conection :

ftp> dir CA43600NC209XU.2002033150*
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
-rw-r--r-- 1 101 101 21311 Mar 31 04:17 CA43600NC209XU.2002033150040G
226 Transfer complete.

The file date/time differs one hour !!

Any idea ??

Thanks in advance.

Rafa
2 REPLIES 2
melvyn burnard
Honored Contributor
Solution

Re: Date in restricted ftp is not correct

Did you check if a /usr/lib/tztab is visible? If ftpd uses chroot (which I think it does for restricted ftp), there may be no tztab, which means the switch between normal and DST in MET-1METDST is done according to the American rules, which mean switching to DST on the first Sunday in April and not the last in March. So the problem may go away next week
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Lukas Grijander
Advisor

Re: Date in restricted ftp is not correct

Thank you very much Melvyn.

Copying /usr/lib/tztab to /home_of_restricted_user/usr/lib/tztab , /home_of_restricted_user/usr/bin/ls works fine.

Best Regards.