chmod -R 775 /root
Hi,
I was usually using: chmod -R 775 /path_to_directory chown -R root:wheel /path_to_directory to access the specific directory from wheel user but unfortunately I ran the following command and now unable to access root even the password is correct chmod -R 775 /root Kindly advise Thanks & best regards |
You changed the entire content of /root, including /root to permisssions rwxrwxr-x ... but from the roregoing you've already done this some other places too? Not sure what you mean by "access root". Which distribution is this? How are you trying to access root? (log in as root user? or do you mean that when you run the command, the system won't let you?)
Hopefully you have just realized that this was a very silly thing to do: those permissions are there for a reason. You could have just given everyone in the wheel group sudo access. |
I 100% realized that this was my silly act and now I really disappointed from my own hands
I was accessing root from wheel user as direct ssh to root was disabled from the beginning This is centOS Enterprise linux 5.x and when am trying to access root from wheel user then: -bash-3.1$ su -l Password: su: incorrect password Thanks for reply |
If you have some administration to do through ssh, you should ssh using your normal user and use su/sudo on the remote machine, very much like you (hopefully) do with physical access.
Moreover 775 makes everything executable. You do not want that. I do not get why having 775 would prevent you to log in, however. Are you sure you did not do anything else, which broke su? |
Quote:
ORA-10997: another startup/shutdown operation of this instance inprogress ORA-09967: unable to create or open lock file Linux Error: 30: Read-only file system and the whole system became down. This instance of oracle is running one very important website and I became nervous so immediately I did: chmod -R 775 /usr/lib/oracle/xe and then tried that started oracle instance and website became up again then I did mistake that was not having any reason to do same for /root anyhow is there anything to restore it in yesterday date/time like windows or rollback process like oracle? Thanks again & best regards |
I get access from main server to my this vps with the same previous password:
Code:
[root@ltd02 ~]# su - 100vm Thanks & best regards |
As you've mentioned its Centos, use this: http://www.cyberciti.biz/tips/reset-...ermission.html
|
Quote:
You only get a rollback if you have set it up to save the state of the system beforehand. The cyberciti site looks promising - though I usually distrust anything .biz ... though I imagine that you'd need root access for this to work. Which will mean you have to do it at the physical machine, probably from a rescue terminal. I sure hope you are the sysadmin... |
All times are GMT -5. The time now is 09:26 PM. |