Re: [Re: [Re: [Re: [Re: [SLUG] Cron Weird Problem from a newby]]]]
On 16 Apr, Louis Selvon wrote: > >That sounds a little like /usr/bin/crontab is not executable due to > problems in shared libraries or ldconfig version. > > >What happens if you say: > > >ldd /usr/bin/crontab > > *** Output follows: > +++ > [root@ensim admin]# ldd /usr/bin/crontab > libc.so.6 => /lib/i686/libc.so.6 (0x4001e000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000) That looks good and correct. > >You could also try: > > >strace /usr/bin/crontab -l > > >and see what kind of errors happen near the end. > > Output follows. This is a long one, and I do not understand any of it. [...] > send(3, "<78>Apr 16 19:34:33 crontab[8073"..., 54, 0) = 54 > rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0 > open("cron/root", O_RDONLY) = -1 ENOENT (No such file or > directory) > write(2, "no crontab for root\n", 20no crontab for root > ) = 20 > _exit(1)= ? Odd. That isn't the error being reported from bash, which from memory was: "/bin/bash: /usr/bin/crontab: file not found" Anyway, it sounds very like the crontab -e did not in fact create a crontab file for root. Weird! luke -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [Re: [Re: [Re: [SLUG] Cron Weird Problem from a newby]]]
At 7:02 pm, Tuesday, April 16 2002, Ken Foskey mumbled: > This combine with your perl question suggests a corrupt harddisk, might > be fsck time. Dont ask me have not done this properly in Geoffs LPIC > class yet :-) > Feh. Reboot into single-user mode ('linux single' at the LILO prompt), and fsck all the hard drives you want. On bootup, fsck is run with some options (I can't remember which, sorry) that make it more paranoid, and to only fix slight errors. When you run it without any options, it runs a 5-pass through check over the filesystem. There, top of the class. :-) -- Steve xhost +localhost should only be done by people who would paint their hostname and root password on an interstate overpass. msg22549/pgp0.pgp Description: PGP signature
Re: [Re: [Re: [Re: [Re: [SLUG] Cron Weird Problem from a newby]]]]
>That sounds a little like /usr/bin/crontab is not executable due to problems in shared libraries or ldconfig version. >What happens if you say: > ldd /usr/bin/crontab *** Output follows: +++ [root@ensim admin]# ldd /usr/bin/crontab libc.so.6 => /lib/i686/libc.so.6 (0x4001e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000) [root@ensim admin]# +++ >You could also try: > strace /usr/bin/crontab -l >and see what kind of errors happen near the end. Output follows. This is a long one, and I do not understand any of it. [root@ensim admin]# strace /usr/bin/crontab -l execve("/usr/bin/crontab", ["/usr/bin/crontab", "-l"], [/* 21 vars */]) = 0 uname({sys="Linux", node="ensim.rackshack.net", ...}) = 0 brk(0) = 0x804dd70 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=21334, ...}) = 0 old_mmap(NULL, 21334, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3)= 0 open("/lib/i686/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\307\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=5779542, ...}) = 0 old_mmap(NULL, 1291464, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000 mprotect(0x4015, 38088, PROT_NONE) = 0 old_mmap(0x4015, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x131000) = 0x4015 old_mmap(0x40156000, 13512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40156000 close(3)= 0 munmap(0x40018000, 21334) = 0 getpid()= 8073 brk(0) = 0x804dd70 brk(0x804dd98) = 0x804dd98 brk(0x804e000) = 0x804e000 open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2601 brk(0x804f000) = 0x804f000 read(3, "", 4096) = 0 close(3)= 0 munmap(0x40018000, 4096)= 0 open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=370, ...}) = 0 mmap2(NULL, 370, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3)= 0 open("/usr/lib/locale/en_US/LC_MEASUREMENT", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0 mmap2(NULL, 28, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40019000 close(3)= 0 open("/usr/lib/locale/en_US/LC_TELEPHONE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0 mmap2(NULL, 64, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001a000 close(3)= 0 open("/usr/lib/locale/en_US/LC_ADDRESS", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=160, ...}) = 0 mmap2(NULL, 160, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001b000 close(3)= 0 open("/usr/lib/locale/en_US/LC_NAME", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0 mmap2(NULL, 82, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001c000 close(3)= 0 open("/usr/lib/locale/en_US/LC_PAPER", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0 mmap2(NULL, 39, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001d000 close(3)= 0 open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 close(3)= 0 open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0 mmap2(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015a000 close(3)= 0 brk(0x805) = 0x805 open("/usr/lib/locale/en_US/LC_MONETARY", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=291, ...}) = 0 mmap2(NULL, 291, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015b000 close(3)= 0 open("/usr/lib/locale/en_US/LC_COLLATE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=21499, ...}) = 0 mmap2(NULL, 21499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015c000 close(3)= 0 open("/usr/lib/locale/en_US/LC_TIME", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2456, ...}) = 0 mmap2(NULL, 2456, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40162000 close(3)
Re: [Re: [Re: [Re: [SLUG] Cron Weird Problem from a newby]]]
On Mon, 2002-04-15 at 23:49, Louis Selvon wrote: > But why can admin user as well see crontab, but normal users cannot ?? > This combine with your perl question suggests a corrupt harddisk, might be fsck time. Dont ask me have not done this properly in Geoffs LPIC class yet :-) KenF -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [Re: [Re: [Re: [SLUG] Cron Weird Problem from a newby]]]
On 15 Apr, Louis Selvon wrote: > > bash-2.04$ /usr/bin/crontab -e > > bash: /usr/bin/crontab: No such file or directory > > bash-2.04$ > > >I would be concerned about this not running. > > >As root can you see crontab in the /usr/bin directory > > >ls -l /usr/bin/crontab > > >what are the permissions on the file? > > [root@ensim admin]# which crontab > /usr/bin/crontab > [root@ensim admin]# cd /usr/bin > [root@ensim bin]# ls -al crontab > -rwsr-xr-x1 root root21312 Mar 9 2001 crontab > [root@ensim bin]# > > But why can admin user as well see crontab, but normal users cannot ?? That sounds a little like /usr/bin/crontab is not executable due to problems in shared libraries or ldconfig version. What happens if you say: ldd /usr/bin/crontab I get: libc.so.6 => /lib/i686/libc.so.6 (0x40031000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000) You could also try: strace /usr/bin/crontab -l and see what kind of errors happen near the end. luke -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [Re: [Re: [Re: [SLUG] Cron Weird Problem from a newby]]]
> bash-2.04$ /usr/bin/crontab -e > bash: /usr/bin/crontab: No such file or directory > bash-2.04$ >I would be concerned about this not running. >As root can you see crontab in the /usr/bin directory >ls -l /usr/bin/crontab >what are the permissions on the file? [root@ensim admin]# which crontab /usr/bin/crontab [root@ensim admin]# cd /usr/bin [root@ensim bin]# ls -al crontab -rwsr-xr-x1 root root21312 Mar 9 2001 crontab [root@ensim bin]# But why can admin user as well see crontab, but normal users cannot ?? Louis. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug