vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I have a problem with one of our HPUX-boxes. I need to set time and date but whenever I try I get the following result: [~]# date 0416085404 date: do you really want to run time backwards?[yes/no]yes date: no permission Well, I am root on this machine. If I try using SAM to change time and date I don't get an error message but nothing is changed. What is going wrong? This is a C360 running HPUX 10.20. No, I can not update to 11.00 for some software necessary for an unfinished project does not run with 11.00. This problem is new to this machine and I am kind of lost. Any hints or help is very appreciated. Thanks in advance Hinnerk -- Dr.-Ing. Dipl.-Inf. H. Hagenah hg@lft.uni-erlangen.de Lehrstuhl fuer Fertigungstechnologie FAU Erlangen Der Charakter einer Frau zeigt sich nicht, wo die Liebe beginnt, sondern wo sie endet. Rosa Luxenburg |
| |||
| On 16 Apr 2004 08:58:25 +0200, Hinnerk Hagenah <hg@lft.uni-erlangen.de> wrote: >Hi, >I have a problem with one of our HPUX-boxes. I need to set time and >date but whenever I try I get the following result: > >[~]# date 0416085404 >date: do you really want to run time backwards?[yes/no]yes >date: no permission Did you try using "-u"? (month=mm, day=dd, hour=hh, minute=mm, year=yy): date -u mmddhhmmyy Doug http://home.tampabay.rr.com/batcave/unixnotes.htm |
| |||
| dburton30@hotmail.com (Doug Burton) writes: > On 16 Apr 2004 08:58:25 +0200, Hinnerk Hagenah > <hg@lft.uni-erlangen.de> wrote: > >I have a problem with one of our HPUX-boxes. I need to set time and > >date but whenever I try I get the following result: > >[~]# date 0416085404 > >date: do you really want to run time backwards?[yes/no]yes > >date: no permission > Did you try using "-u"? > (month=mm, day=dd, hour=hh, minute=mm, year=yy): > date -u mmddhhmmyy Yes I did - no success that way either: # date -u 0416144304 date: do you really want to run time backwards?[yes/no]yes date: no permission Hinnerk -- Dr.-Ing. Dipl.-Inf. H. Hagenah hg@lft.uni-erlangen.de Lehrstuhl fuer Fertigungstechnologie FAU Erlangen Ein Freund ist ein Geschenk, das man sich selbst macht. Robert Louis Stevenson (1850-94), schott. Autor |
| |||
| I get the same results when running the date as non-root user. Make sure that the "root" user is indeed uid 0 with the id command. If you are then check permissions and what. Here is my output on a 10.20 system that has no problems changing the date .. [/home/un410]$ date -u 0416144304 date: do you really want to run time backwards?[yes/no]yes date: no permission [/home/un410]$ id uid=162(un410) gid=25(unix4) [/home/un410]$ ll /usr/bin/date -r-xr-xr-x 1 bin bin 16384 [/home/un410]$ what /usr/bin/date /usr/bin/date: $Revision: 76.1.1.1 $ PATCH_10_20: date.o 99/03/23 > [~]# date 0416085404 > date: do you really want to run time backwards?[yes/no]yes > date: no permission > > Well, I am root on this machine. If I try using SAM to change time and > date I don't get an error message but nothing is changed. What is > going wrong? |
| |||
| On 16 Apr 2004 08:58:25 +0200, Hinnerk Hagenah <hg@lft.uni-erlangen.de> wrote: > >[~]# date 0416085404 >date: do you really want to run time backwards?[yes/no]yes >date: no permission Let's make sure you are running the correct date, and it has the correct permissions. Mine look like the following: ozma(su) /: which date /usr/bin/date ozma(su) /: ll /usr/bin/date -r-xr-xr-x 1 bin bin 16384 Nov 14 2000 /usr/bin/date Also, since you have such an old version of the OS, could it be a Y2K problem? Do you have all of the Y2K patches installed? Steve Cooper |
| ||||
| "Jeff" <goaway@spam.ignore> writes: > I get the same results when running the date as non-root user. > Make sure that the "root" user is indeed uid 0 with the id command. > If you are then check permissions and what. Here is my output on a 10.20 > system that has no problems changing the date .. > > [/home/un410]$ date -u 0416144304 > date: do you really want to run time backwards?[yes/no]yes > date: no permission > > [/home/un410]$ id > uid=162(un410) gid=25(unix4) # id uid=0(root) gid=3(sys) > [/home/un410]$ ll /usr/bin/date > -r-xr-xr-x 1 bin bin 16384 There we are - permissions were # ll /usr/bin/date -r-sr-sr-x 1 bin bin 16384 Mar 23 1999 /usr/bin/date and of course this can't work. Changing them back solved the problem. Why are solutions usually simple once you found them? I do feel kind of stupid now but then I probably deserve to... > > [/home/un410]$ what /usr/bin/date > /usr/bin/date: > $Revision: 76.1.1.1 $ > PATCH_10_20: date.o 99/03/23 Yep, that's exactly what I get too. Well, I just wonder what made me change those permissions... Well I probably wanted some user to change the date so he doesn't have to call me all the time. I guess I'll write a shellscript. Thanks a lot for helping! Hinnerk -- Dr.-Ing. Dipl.-Inf. H. Hagenah hg@lft.uni-erlangen.de Lehrstuhl fuer Fertigungstechnologie FAU Erlangen It is impossible to make anything foolproof, because fools are so ingenious. Roger Berg |