ls -al will return an error of 0653-345 ./.. permission denied.
find will return an error of pwd: permission denied
To test: login as a regular user (not root) and issue "find / -name testing" You should get a lot of errors about not being able to chdir. If you get a "pwd: permission denied" error, you have this problem.
WORKAROUND To Recover The Filesystem Permissions
==================================================
If rootvg is mirrored, break the mirror first.
Boot to service mode using a sysback tape or network boot image
Choose the option "Import root volume group" from the sysback utilities menu
Respond "n" to the question about mounting the filesystems
mount /dev/hd4 /mnt
mount /dev/hd2 /mnt/usr
cp /mnt/usr/bin/chmod /usr/bin
unmount -f /mnt/usr (if unmount doesn't work, try umount)
cd /mnt
chmod 755 usr
chmod 755 var
chmod 755 home
chmod 777 tmp
chmod +t tmp
ls -ld | grep ^d | grep -v "drwxr-xr-x"
Do a chmod 755 for each other filesystem within rootvg
sync;sync;sync
cd /
unmount -f /mnt
exit
reboot
If rootvg was mirrored before this procedure, recreate the mirror
Additional mounts may be corrupted. As a non-root user, issue "find / -name testing". You should get a lot of errors about not being able to chdir. If you get a "pwd: permission denied" error, you have this problem on more mounts. To find the next directory, issue "find / -type d | more" from a root userid and find the next directories after the last chdir error.
Note: The following procedure was taken from rshelp for fixing this problem using an installation CD instead of sysback. It has not been tested locally:
boot from your install cd
as it boots up you will see words go by...press 5 key....
press enter english
press enter for console
Brings up install menu.
Choose option 3, start mainteance mode for system recovery
choose option 1, access rootvg
access volume group with filesystem mounted
umount /tmp
ls -ld /tmp
chmod /tmp 1777
mount /tmp
umount /var
chmod /var 755
mount /var
and so forth,........ (/usr should also be at 755, / should also be 755)
find will return an error of pwd: permission denied
To test: login as a regular user (not root) and issue "find / -name testing" You should get a lot of errors about not being able to chdir. If you get a "pwd: permission denied" error, you have this problem.
WORKAROUND To Recover The Filesystem Permissions
==================================================
If rootvg is mirrored, break the mirror first.
Boot to service mode using a sysback tape or network boot image
Choose the option "Import root volume group" from the sysback utilities menu
Respond "n" to the question about mounting the filesystems
mount /dev/hd4 /mnt
mount /dev/hd2 /mnt/usr
cp /mnt/usr/bin/chmod /usr/bin
unmount -f /mnt/usr (if unmount doesn't work, try umount)
cd /mnt
chmod 755 usr
chmod 755 var
chmod 755 home
chmod 777 tmp
chmod +t tmp
ls -ld | grep ^d | grep -v "drwxr-xr-x"
Do a chmod 755 for each other filesystem within rootvg
sync;sync;sync
cd /
unmount -f /mnt
exit
reboot
If rootvg was mirrored before this procedure, recreate the mirror
Additional mounts may be corrupted. As a non-root user, issue "find / -name testing". You should get a lot of errors about not being able to chdir. If you get a "pwd: permission denied" error, you have this problem on more mounts. To find the next directory, issue "find / -type d | more" from a root userid and find the next directories after the last chdir error.
Note: The following procedure was taken from rshelp for fixing this problem using an installation CD instead of sysback. It has not been tested locally:
boot from your install cd
as it boots up you will see words go by...press 5 key....
press enter english
press enter for console
Brings up install menu.
Choose option 3, start mainteance mode for system recovery
choose option 1, access rootvg
access volume group with filesystem mounted
umount /tmp
ls -ld /tmp
chmod /tmp 1777
mount /tmp
umount /var
chmod /var 755
mount /var
and so forth,........ (/usr should also be at 755, / should also be 755)
No comments:
Post a Comment