I am using REDHAT/CENTOS 6.5.
I used to have access to directories, but now when I try to go into them after I rebooted by UNIX, it tells me that permission is denied.
Using stat command on these directories it seems my user (which is not root) does not have access to these directories anymore even though I created them with this user. I might have corrupted, erased or done something to my
.bashrc or some other file - I am a novice in UNIX.
Then, I try
sudo chmod go+rx on the directory, its asks for the user name password and I enter it and it says "user" (user being my user name locally) is not in the sudoers file and this incident will be reported.
I think I erased some files in my root directory.
What did I do or erase to cause this to happen and how can I fix it?
Also when I change to root user now, the command line just says -bash-4.1 and nothing else. I must have erased something in the root directory or something. I am new to UNIX so I am not sure.
Can this be fixed?
Update: Now it seems I cannot write anything in the directories also.