Getting 'permission denied' message.
Hi EXPERTS,
I hope I dint messed up things big time, but I am getting the 'permission denied' message when trying to view or modify a directory/file of a different user from root account. This issue started to happen when I accidentally ran ' chmod -R 755 / ' . [root@shfcolo-opfch-rtd1 data]# su amanda bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied bash: /dev/null: Permission denied DISPLAY set to 106.51.43.133:0 bash: /dev/null: Permission denied [amanda@shfcolo-opfch-rtd1 data]$ crontab -e /tmp/crontab.jGP5fB: Permission denied please help me to get out of this trouble. Appreciate all your help in advance. |
Are you trying to do this as root or as a normal user?
jdk |
Quote:
|
Thanks jdk,
I am trying to do this as a 'root'. Thanks unSpawn for looking into this. It was a complete accident. Please let me know how this can be corrected or undo. |
In the case of a RHEL, CentOS, SL or other RPM-using distribution see 'man rpm' (--setperms|--setugids), though that understandably only works for files the RPMDB knows about. For other files you best get the permissions from like a verbose backup listing.
|
You may be out of luck and have to reinstall. Try unspawns rpm suggestion first - this should restore the system to a usable state, though it will not fix users files (/home got affected too). For that, you would have to go to backups... and even then, files created after the backup will have the wrong access mode.
If the rpm commands don't work you may be out of luck and have to reinstall. |
All times are GMT -5. The time now is 03:18 AM. |