我有两台 Debian 服务器,它们使用相同的 LDAP/Kerberos 服务器,但它们的 klist 输出中的日期显示格式不同 - squeeze 上的 mm/dd/yyyy 和 wheezy 上的 dd/mm/yy。看起来它们只是对短日期格式使用了不同的定位设置,尽管两台服务器上的区域设置相同。有没有办法将 wheezy 上的 klist 报告日期更改为与 squeeze 上的相同格式?
区域设置 - Squeeze
user@squeeze:~ > locale -a
C
en_US.utf8
POSIX
user@squeeze:~ > locale -ck LC_TIME
LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
am_pm="AM;PM"
d_t_fmt="%a %d %b %Y %r %Z"
d_fmt="%m/%d/%Y"
t_fmt="%r"
t_fmt_ampm="%I:%M:%S %p"
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries="S"
week-ndays=7
week-1stday=19971130
week-1stweek=7
first_weekday=1
first_workday=2
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="UTF-8"
区域设置 - wheezy
user@wheezy:~ > locale -a
C
C.UTF-8
en_US.utf8
POSIX
user@wheezy:~ > locale -ck LC_TIME
LC_TIME
abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
abmon="Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec"
mon="January;February;March;April;May;June;July;August;September;October;November;December"
am_pm="AM;PM"
d_t_fmt="%a %d %b %Y %r %Z"
d_fmt="%m/%d/%Y"
t_fmt="%r"
t_fmt_ampm="%I:%M:%S %p"
era=
era_year=""
era_d_fmt=""
alt_digits=
era_d_t_fmt=""
era_t_fmt=""
time-era-num-entries=0
time-era-entries="S"
week-ndays=7
week-1stday=19971130
week-1stweek=7
first_weekday=1
first_workday=2
cal_direction=1
timezone=""
date_fmt="%a %b %e %H:%M:%S %Z %Y"
time-codeset="UTF-8"
如您所见,到目前为止,所有内容和区域设置似乎都相似。
但在 Squeeze 上:user@squeeze:~ > klist 票证缓存:FILE:/tmp/krb5cc_1036_sTiFu16216 默认主体:user@domain
Valid starting Expires Service principal
06/01/14 15:27:17 06/08/14 15:27:13 krbtgt/domain
在 Wheezy 上我得到:user@wheezy:~ > klist 票证缓存:FILE:/tmp/krb5cc_1036_W4vFn5D3Cr 默认主体:user@domain
Valid starting Expires Service principal
01/06/2014 15:28 08/06/2014 15:28 krbtgt/domain
有什么想法吗?谢谢。