MAN system is tarfued SuSE 7.2
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked. Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de... (There are several more similar to thes) This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path. ??? -CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
Have you removed the setuid bit on mandb? regards Anders On Friday 10 August 2001 00:40, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root? Did you try to use --debug option of mandb? Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt -Kastus
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
What must be done to get this working correctly? I changed the perms in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'. I have applied all updates from SuSE. Once again this is SuSE 7.2. I also get these same errors when I run SuSEconfig. Any ideas??? _CC_ --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570 -----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2 On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root? Did you try to use --debug option of mandb? Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt -Kastus
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
I'm assuming you have selected permissions.paranoid. This breaks many things. If you do chmod u+s /usr/bin/mandb it will work. Anders On Friday 10 August 2001 02:55, Chuck wrote:
What must be done to get this working correctly? I changed the perms in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'.
I have applied all updates from SuSE. Once again this is SuSE 7.2. I also get these same errors when I run SuSEconfig.
Any ideas???
_CC_
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root?
Did you try to use --debug option of mandb?
Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt
-Kastus
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb This is not working. It is not letting mandb creating the 'index cache'. ??? If I have selected permissions.paranoid, how do I change this? Thanks, CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570 -----Original Message----- From: Anders Johansson [mailto:andjoh@cicada.linux-site.net] Sent: Thursday, August 09, 2001 6:12 PM To: Chuck; suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2 I'm assuming you have selected permissions.paranoid. This breaks many things. If you do chmod u+s /usr/bin/mandb it will work. Anders On Friday 10 August 2001 02:55, Chuck wrote:
What must be done to get this working correctly? I changed the perms in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'.
I have applied all updates from SuSE. Once again this is SuSE 7.2. I also get these same errors when I run SuSEconfig.
Any ideas???
_CC_
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root?
Did you try to use --debug option of mandb?
Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt
-Kastus
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Hm. Are you saying that it is suid, and still gives you 'permission denied'? Slightly odd, if it's a fresh install. What does your /etc/fstab look like? Or are you running SuSEconfig to update the mandb? Note that SuSEconfig will reset the permissions to what they were before. If you have selected permissions.paranoid, edit /etc/rc.config and change the line PERMISSIONS_SECURITY from paranoid to secure and run SuSEconfig regards Anders On Friday 10 August 2001 18:47, Chuck wrote:
-rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb
This is not working. It is not letting mandb creating the 'index cache'.
???
If I have selected permissions.paranoid, how do I change this?
Thanks, CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Anders Johansson [mailto:andjoh@cicada.linux-site.net] Sent: Thursday, August 09, 2001 6:12 PM To: Chuck; suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
I'm assuming you have selected permissions.paranoid. This breaks many things. If you do chmod u+s /usr/bin/mandb it will work.
Anders
On Friday 10 August 2001 02:55, Chuck wrote:
What must be done to get this working correctly? I changed the perms in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'.
I have applied all updates from SuSE. Once again this is SuSE 7.2. I also get these same errors when I run SuSEconfig.
Any ideas???
_CC_
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root?
Did you try to use --debug option of mandb?
Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt
-Kastus
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
My PERMISSIONS_SECURITY was set to "easy local' but I have now changed this to "secure". When I run /sbin/SuSEconfig, I get the following: Processing index files of all manpages... fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/fsstnd/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/de/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/de/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/de/index.db: Permission denied fopen: Permission denied Here is mandb: matrix:/usr/local/man/man1 ===>ls -la /usr/bin/mandb -rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb When I run mandb (as root) I get the same errors. Here is /etc/fstab: /dev/sda3 / ext2 defaults 1 1 /dev/sda1 /boot ext2 defaults 1 2 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 devpts /dev/pts devpts defaults 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 proc /proc proc defaults 0 0 /dev/sdc1 /u02 ext2 defaults 1 2 /dev/sdc2 /mp3_v1 ext2 defaults 1 2 /dev/sdd1 /u03 ext2 defaults 1 2 /dev/sdd2 /mp3_v2 ext2 defaults 1 2 /dev/sdb2 /usr/local ext2 defaults 1 2 /dev/sda2 /var ext2 defaults 1 2 /dev/sdb1 swap swap pri=42 0 0 domo:/home /home nfs rw,bg,soft domo:/ccdoc /ccdoc nfs rw,bg,soft eng0:/eng /eng nfs rw,bg,soft /var is local and not NFS mounted so why am I getting permission denied??? Here are the perms: /var root:root 755 /var/cache root:root 755 /var/cache/man man:root 755 /var/cache/man/<subdirs> diag:daemon 755 /var/cache/man/index.db man:bin 644 As in the first error posted above, this directory exists: /var/cache/man/fsstnd/ Why can't it create the file /var/cache/man/fsstnd/26672? I am sure this is something simple I have overlooked but what? -CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570 -----Original Message----- From: Anders Johansson [mailto:andjoh@cicada.linux-site.net] Sent: Friday, August 10, 2001 10:06 AM To: Chuck; suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2 Hm. Are you saying that it is suid, and still gives you 'permission denied'? Slightly odd, if it's a fresh install. What does your /etc/fstab look like? Or are you running SuSEconfig to update the mandb? Note that SuSEconfig will reset the permissions to what they were before. If you have selected permissions.paranoid, edit /etc/rc.config and change the line PERMISSIONS_SECURITY from paranoid to secure and run SuSEconfig regards Anders On Friday 10 August 2001 18:47, Chuck wrote:
-rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb
This is not working. It is not letting mandb creating the 'index cache'.
???
If I have selected permissions.paranoid, how do I change this?
Thanks, CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Anders Johansson [mailto:andjoh@cicada.linux-site.net] Sent: Thursday, August 09, 2001 6:12 PM To: Chuck; suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
I'm assuming you have selected permissions.paranoid. This breaks many things. If you do chmod u+s /usr/bin/mandb it will work.
Anders
On Friday 10 August 2001 02:55, Chuck wrote:
What must be done to get this working correctly? I changed the perms
in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'.
I have applied all updates from SuSE. Once again this is SuSE 7.2. I
also get these same errors when I run SuSEconfig.
Any ideas???
_CC_
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root?
Did you try to use --debug option of mandb?
Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt
-Kastus
???
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Fri, Aug 10, 2001 at 11:32:05AM -0700, Chuck wrote:
My PERMISSIONS_SECURITY was set to "easy local' but I have now changed this to "secure".
When I run /sbin/SuSEconfig, I get the following: Processing index files of all manpages... fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/fsstnd/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/de/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/de/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/de/index.db: Permission denied fopen: Permission denied
Here is mandb: matrix:/usr/local/man/man1 ===>ls -la /usr/bin/mandb -rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb
When I run mandb (as root) I get the same errors.
Here is /etc/fstab: /dev/sda3 / ext2 defaults 1 1 /dev/sda1 /boot ext2 defaults 1 2 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 devpts /dev/pts devpts defaults 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 proc /proc proc defaults 0 0 /dev/sdc1 /u02 ext2 defaults 1 2 /dev/sdc2 /mp3_v1 ext2 defaults 1 2 /dev/sdd1 /u03 ext2 defaults 1 2 /dev/sdd2 /mp3_v2 ext2 defaults 1 2 /dev/sdb2 /usr/local ext2 defaults 1 2 /dev/sda2 /var ext2 defaults 1 2 /dev/sdb1 swap swap pri=42 0 0 domo:/home /home nfs rw,bg,soft domo:/ccdoc /ccdoc nfs rw,bg,soft eng0:/eng /eng nfs rw,bg,soft
/var is local and not NFS mounted so why am I getting permission denied???
Here are the perms: /var root:root 755 /var/cache root:root 755 /var/cache/man man:root 755 /var/cache/man/<subdirs> diag:daemon 755 /var/cache/man/index.db man:bin 644
As in the first error posted above, this directory exists: /var/cache/man/fsstnd/
Why can't it create the file /var/cache/man/fsstnd/26672?
Could you show us the listing of /var/cache/man/fsstnd ? Did you try to run mandb -d ?
I am sure this is something simple I have overlooked but what?
Sure, it's something simple. A second pair of eyes usually the best help :-) -Kastus
-CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
Here is the listing: matrix:/var/cache/man/fsstnd ===>ls -al total 92 drwxr-xr-x 19 diag daemon 4096 Aug 10 11:38 . drwxr-xr-x 24 man root 4096 Aug 10 11:37 .. drwxr-xr-x 18 diag daemon 4096 Jul 10 07:50 allman drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat1 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat2 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat3 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat4 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat5 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat6 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat7 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat8 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat9 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 catn drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 cs drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 de drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 es drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 fr -rw-r--r-- 1 diag daemon 12322 Jul 10 08:30 index.db drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 it drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 ja -rw-r--r-- 1 root root 0 Aug 10 00:15 whatis mandb -d produces the same errors posted before. -CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570 -----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Friday, August 10, 2001 12:15 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2 On Fri, Aug 10, 2001 at 11:32:05AM -0700, Chuck wrote:
My PERMISSIONS_SECURITY was set to "easy local' but I have now changed
this to "secure".
When I run /sbin/SuSEconfig, I get the following: Processing index files of all manpages... fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/fsstnd/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/de/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/de/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/de/index.db: Permission denied fopen: Permission denied
Here is mandb: matrix:/usr/local/man/man1 ===>ls -la /usr/bin/mandb -rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb
When I run mandb (as root) I get the same errors.
Here is /etc/fstab: /dev/sda3 / ext2 defaults 1 1 /dev/sda1 /boot ext2 defaults 1 2 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 devpts /dev/pts devpts defaults 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 proc /proc proc defaults 0 0 /dev/sdc1 /u02 ext2 defaults 1 2 /dev/sdc2 /mp3_v1 ext2 defaults 1 2 /dev/sdd1 /u03 ext2 defaults 1 2 /dev/sdd2 /mp3_v2 ext2 defaults 1 2 /dev/sdb2 /usr/local ext2 defaults 1 2 /dev/sda2 /var ext2 defaults 1 2 /dev/sdb1 swap swap pri=42 0 0 domo:/home /home nfs rw,bg,soft domo:/ccdoc /ccdoc nfs rw,bg,soft eng0:/eng /eng nfs rw,bg,soft
/var is local and not NFS mounted so why am I getting permission denied???
Here are the perms: /var root:root 755 /var/cache root:root 755 /var/cache/man man:root 755 /var/cache/man/<subdirs> diag:daemon 755 /var/cache/man/index.db man:bin 644
As in the first error posted above, this directory exists: /var/cache/man/fsstnd/
Why can't it create the file /var/cache/man/fsstnd/26672?
Could you show us the listing of /var/cache/man/fsstnd ? Did you try to run mandb -d ?
I am sure this is something simple I have overlooked but what?
Sure, it's something simple. A second pair of eyes usually the best help :-) -Kastus
-CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Fri, Aug 10, 2001 at 01:25:15PM -0700, Chuck wrote:
Here is the listing: matrix:/var/cache/man/fsstnd ===>ls -al total 92 drwxr-xr-x 19 diag daemon 4096 Aug 10 11:38 . drwxr-xr-x 24 man root 4096 Aug 10 11:37 .. drwxr-xr-x 18 diag daemon 4096 Jul 10 07:50 allman drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat1 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat2 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat3 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat4 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat5 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat6 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat7 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat8 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat9 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 catn drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 cs drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 de drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 es drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 fr -rw-r--r-- 1 diag daemon 12322 Jul 10 08:30 index.db drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 it drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 ja -rw-r--r-- 1 root root 0 Aug 10 00:15 whatis
Chuck, how did you install 7.2? Did you update some existent installation? THe ownership of files is wrong, that's why mandb cannot write anything. Everything under /var/cache/man should be owned by user man group root. As root run : chown -R man:root /var/cache/man Then mandb should be able to write its files. -Kastus
mandb -d produces the same errors posted before.
-CC
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Friday, August 10, 2001 12:15 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Fri, Aug 10, 2001 at 11:32:05AM -0700, Chuck wrote:
My PERMISSIONS_SECURITY was set to "easy local' but I have now changed
this to "secure".
When I run /sbin/SuSEconfig, I get the following: Processing index files of all manpages... fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/fsstnd/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied fopen: Permission denied /usr/bin/mandb: can't create index cache /var/cache/man/de/26672: Permission denied /usr/bin/mandb: can't chmod /var/cache/man/de/index.db: Operation not permitted /usr/bin/mandb: can't remove /var/cache/man/de/index.db: Permission denied fopen: Permission denied
Here is mandb: matrix:/usr/local/man/man1 ===>ls -la /usr/bin/mandb -rwsr-xr-x 1 root root 4780 May 15 06:49 /usr/bin/mandb
When I run mandb (as root) I get the same errors.
Here is /etc/fstab: /dev/sda3 / ext2 defaults 1 1 /dev/sda1 /boot ext2 defaults 1 2 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 devpts /dev/pts devpts defaults 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 proc /proc proc defaults 0 0 /dev/sdc1 /u02 ext2 defaults 1 2 /dev/sdc2 /mp3_v1 ext2 defaults 1 2 /dev/sdd1 /u03 ext2 defaults 1 2 /dev/sdd2 /mp3_v2 ext2 defaults 1 2 /dev/sdb2 /usr/local ext2 defaults 1 2 /dev/sda2 /var ext2 defaults 1 2 /dev/sdb1 swap swap pri=42 0 0 domo:/home /home nfs rw,bg,soft domo:/ccdoc /ccdoc nfs rw,bg,soft eng0:/eng /eng nfs rw,bg,soft
/var is local and not NFS mounted so why am I getting permission denied???
Here are the perms: /var root:root 755 /var/cache root:root 755 /var/cache/man man:root 755 /var/cache/man/<subdirs> diag:daemon 755 /var/cache/man/index.db man:bin 644
As in the first error posted above, this directory exists: /var/cache/man/fsstnd/
Why can't it create the file /var/cache/man/fsstnd/26672?
Could you show us the listing of /var/cache/man/fsstnd ?
Did you try to run mandb -d ?
I am sure this is something simple I have overlooked but what?
Sure, it's something simple. A second pair of eyes usually the best help :-)
-Kastus
-CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Saturday 11 August 2001 00:52, Konstantin (Kastus) Shchuka wrote:
On Fri, Aug 10, 2001 at 01:25:15PM -0700, Chuck wrote:
Here is the listing: matrix:/var/cache/man/fsstnd ===>ls -al total 92 drwxr-xr-x 19 diag daemon 4096 Aug 10 11:38 . drwxr-xr-x 24 man root 4096 Aug 10 11:37 .. drwxr-xr-x 18 diag daemon 4096 Jul 10 07:50 allman drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat1 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat2 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat3 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat4 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat5 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat6 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat7 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat8 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat9 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 catn drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 cs drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 de drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 es drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 fr -rw-r--r-- 1 diag daemon 12322 Jul 10 08:30 index.db drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 it drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 ja -rw-r--r-- 1 root root 0 Aug 10 00:15 whatis
Chuck, how did you install 7.2? Did you update some existent installation?
THe ownership of files is wrong, that's why mandb cannot write anything.
Everything under /var/cache/man should be owned by user man group root.
As root run :
chown -R man:root /var/cache/man
Then mandb should be able to write its files.
-Kastus
mandb is suid root, and root can write to anyone's files. I'd be very surprised if this has any effect. On my system, the files are owned by man.daemon Anders
On Sat, Aug 11, 2001 at 12:59:11AM +0200, Anders Johansson wrote:
On Saturday 11 August 2001 00:52, Konstantin (Kastus) Shchuka wrote:
On Fri, Aug 10, 2001 at 01:25:15PM -0700, Chuck wrote:
Here is the listing: matrix:/var/cache/man/fsstnd ===>ls -al total 92 drwxr-xr-x 19 diag daemon 4096 Aug 10 11:38 . drwxr-xr-x 24 man root 4096 Aug 10 11:37 .. drwxr-xr-x 18 diag daemon 4096 Jul 10 07:50 allman drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat1 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat2 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat3 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat4 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat5 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat6 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat7 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat8 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 cat9 drwxr-xr-x 2 diag daemon 4096 May 15 06:49 catn drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 cs drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 de drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 es drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 fr -rw-r--r-- 1 diag daemon 12322 Jul 10 08:30 index.db drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 it drwxr-xr-x 12 diag daemon 4096 Jul 10 07:50 ja -rw-r--r-- 1 root root 0 Aug 10 00:15 whatis
Chuck, how did you install 7.2? Did you update some existent installation?
THe ownership of files is wrong, that's why mandb cannot write anything.
Everything under /var/cache/man should be owned by user man group root.
As root run :
chown -R man:root /var/cache/man
Then mandb should be able to write its files.
-Kastus
mandb is suid root, and root can write to anyone's files. I'd be very ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unless sticky bit is used on the file system.
surprised if this has any effect. On my system, the files are owned by man.daemon
The owner is man, group really doesn't matter, and this is the point. -Kastus
Anders
On Saturday 11 August 2001 01:52, Konstantin (Kastus) Shchuka wrote:
mandb is suid root, and root can write to anyone's files. I'd be very
^^^^^^^^^^^^^^^^^^^^^^^^^^^ unless sticky bit is used on the file system.
Excuse me? andjoh@samantha:/ > ls -ld /tmp drwxrwxrwt 17 root root 1631 Aug 11 01:59 /tmp andjoh@samantha:/ > cd /tmp andjoh@samantha:/tmp > ls -l testfile ls: testfile: No such file or directory andjoh@samantha:/tmp > vim testfile andjoh@samantha:/tmp > cat testfile abcdef andjoh@samantha:/tmp > ssh root@samantha root@samantha's password: Last login: Sat Aug 11 01:58:14 2001 from samantha.cicada.linux-site.net Have a lot of fun... samantha:~ # cd /tmp samantha:/tmp # vim testfile samantha:/tmp # cat testfile abcdefghijk Seems to work. Now, if the file system is mounted *read-only*, then root can't edit files, but then again, you won't be able to change ownership either, so that point is rather moot.
surprised if this has any effect. On my system, the files are owned by man.daemon
The owner is man, group really doesn't matter, and this is the point.
-Kastus
Anders
On Sat, Aug 11, 2001 at 02:07:19AM +0200, Anders Johansson wrote:
On Saturday 11 August 2001 01:52, Konstantin (Kastus) Shchuka wrote:
mandb is suid root, and root can write to anyone's files. I'd be very
^^^^^^^^^^^^^^^^^^^^^^^^^^^ unless sticky bit is used on the file system.
Excuse me?
andjoh@samantha:/ > ls -ld /tmp drwxrwxrwt 17 root root 1631 Aug 11 01:59 /tmp
andjoh@samantha:/ > cd /tmp andjoh@samantha:/tmp > ls -l testfile ls: testfile: No such file or directory andjoh@samantha:/tmp > vim testfile andjoh@samantha:/tmp > cat testfile abcdef andjoh@samantha:/tmp > ssh root@samantha root@samantha's password: Last login: Sat Aug 11 01:58:14 2001 from samantha.cicada.linux-site.net Have a lot of fun... samantha:~ # cd /tmp samantha:/tmp # vim testfile samantha:/tmp # cat testfile abcdefghijk
Seems to work. Now, if the file system is mounted *read-only*, then root can't edit files, but then again, you won't be able to change ownership either, so that point is rather moot.
Sorry about that, you are right. Still, Chuck's problem is with wrong ownership of the files in /var/cache/man. And if he is getting permission errors, that means effective uid of mandb when it runs is not root. -Kastus
On Thu, Aug 09, 2001 at 05:55:51PM -0700, Chuck wrote:
What must be done to get this working correctly? I changed the perms in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'.
Did you try man -u ? What does mandb -d produce?
I have applied all updates from SuSE. Once again this is SuSE 7.2. I also get these same errors when I run SuSEconfig.
What kind of errors? It might be that files in the cache are owned by user man and not writable by any other user, and /usr/bin/man is not suid.
Any ideas???
Analyze the error messages, increase debug level... -Kastus
_CC_
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/21188: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root?
Did you try to use --debug option of mandb?
Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt
-Kastus
???
-CC
I used 'mandb -d' and most of the output looks good until this point: Processing manual pages under /usr/man... fopen: Permission denied failed to open /var/cache/man/fsstnd/25205 O_RDONLY create_db(/usr/man): /var/cache/man/fsstnd/25205 mandb: can't create index cache /var/cache/man/fsstnd/25205: Permission denied mandb: warning: can't update index cache /var/cache/man/fsstnd/25205: Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de... fopen: Permission denied failed to open /var/cache/man/de/25205 O_RDONLY None of these directories exists, I could manually create them but are these dynamically created and will more be needed later? Also, why is this happening, is this a bug in 7.2? Thanks, CC --- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570 -----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 6:15 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2 On Thu, Aug 09, 2001 at 05:55:51PM -0700, Chuck wrote:
What must be done to get this working correctly? I changed the perms in /usr/bin/man to 755. This did not change anything. I added several man pages to /usr/local/man, which is in $MANPATH, but man does not see them unless I 'cd /usr/local/man;man ./mymanpage'.
Did you try man -u ? What does mandb -d produce?
I have applied all updates from SuSE. Once again this is SuSE 7.2. I also get these same errors when I run SuSEconfig.
What kind of errors? It might be that files in the cache are owned by user man and not writable by any other user, and /usr/bin/man is not suid.
Any ideas???
Analyze the error messages, increase debug level... -Kastus
_CC_
--- Chuck Carson Sr. Systems Engineer San Diego, California O: +1 (858) 646-2095 F: +1 (858) 297-8570
-----Original Message----- From: Konstantin (Kastus) Shchuka [mailto:kastus@tsoft.com] Sent: Thursday, August 09, 2001 4:29 PM To: suse-linux-e@suse.com Subject: Re: [SLE] MAN system is tarfued SuSE 7.2
On Thu, Aug 09, 2001 at 03:40:41PM -0700, Chuck wrote:
I have been adding man pages to /usr/local/man and /usr/man but the man command is not recognizing them. I ran mandb, which reported no new man pages. In the olden days you simply copied your man page to the appropriate director in your MANPATH and viola, everything
worked.
Mandb also reports the following errors: Processing manual pages under /usr/man... fopen: Permission denied mandb: can't create index cache /var/cache/man/fsstnd/21188: Permission denied mandb: warning: can't update index cache
/var/cache/man/fsstnd/21188:
Permission denied mandb: can't chmod /var/cache/man/fsstnd/index.db: Operation not permitted mandb: can't remove /var/cache/man/fsstnd/index.db: Permission denied Processing manual pages under /usr/share/man/de...
(There are several more similar to thes)
Are you running mandb as root?
Did you try to use --debug option of mandb?
Did you look at /etc/cron.daily/aaa_base_do_mandb script?
This problem existed out of the box for 7.2. Does anyone know the problem? Does anyone know why SuSE is tinkering with a perfectly working man system? I switched to SuSE from Red Hat because Red Hat started junknig up what already worked fine, I hope SuSE is not following down their path.
You might also want to look at this page: http://www.suse.com/de/support/security/2001_019_man_txt.txt
-Kastus
???
-CC
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (3)
-
Anders Johansson
-
Chuck
-
Konstantin (Kastus) Shchuka