Changing Files without permission
Hey Guys,
I need help fast. I created a seperate folder to save some downloaded files and I moved those files to that seperate folder in my home directory. I was going to rename those files on a project I was working on. So I right clicked to change the name of the file inside that folder saved inside my home directory and it highlights the name in blue and I hit backspace and typed in the new name, so I thought. Well I noticed it would not save or change the name, at least this is what I assumed, so I backed out and went to permission in the properties settings and chose forbidden in order to lock the folder. (big mistake I made, oh boy!) When I clicked the little X to close out of home, it gave me an error message, that I did not have permission to change the name of that file. Holy you know what! To make a long story short, I could not get out of the error message # 13 that it kept giving me and I could not open up my "Home" or my "Konsole". I noticed it also removed my desktop icons. I thought, OMG! Why, how why would that cause this sort of problem? I can get into failsafe, but do not know what to do. I cannot reboot into Linux. Any suggestions on what I can do to restore of fix this problem without doing a reinstall? d-1 |
Re: Changing Files without permission
Ok this is what I figured out. I got into failsafe and I then typed login.
I cd to that directory. I then typed "ls" and it showed the new name of the file(s) that I tired to change. I thought I could type rm "tragedy" (which was the name of the file.) and remove it an all my problems would be solved. But I removed that 1 file and it has not fixed my problem. When I try to boot into Mandrake, I still get this message below: [/B][/QUOTE] Code:
X The following installation problem was detected while trying to start KDE. No write access to $HOME directory (/) KDE unbale to start OK [button] d-1 [QUOTE]Originally posted by dolphans1 [B]Hey Guys, I need help fast. I created a seperate folder to save some downloaded files and I moved those files to that seperate folder in my home directory. I was going to rename those files on a project I was working on. So I right clicked to change the name of the file inside that folder saved inside my home directory and it highlights the name in blue and I hit backspace and typed in the new name, so I thought. Well I noticed it would not save or change the name, at least this is what I assumed, so I backed out and went to permission in the properties settings and chose forbidden in order to lock the folder. (big mistake I made, oh boy!) When I clicked the little X to close out of home, it gave me an error message, that I did not have permission to change the name of that file. Holy you know what! To make a long story short, I could not get out of the error message # 13 that it kept giving me and I could not open up my "Home" or my "Konsole". I noticed it also removed my desktop icons. I thought, OMG! Why, how why would that cause this sort of problem? I can get into failsafe, but do not know what to do. I cannot reboot into Linux. Any suggestions on what I can do to restore of fix this problem without doing a reinstall? |
I really cannot make heads or tails of your post.
It would really help me a lot if you would be a little more precise about what your problem is, how exactly you got in the situation you are in, which tools you were using etc, and what you currently can or can't do. You created a directory in you home directory. How? Using konqueror?, and then you moved some files into that directory, and apparently couldn't change their name. Next, you changed the permissions of something, but what exactly? The file you were attempting to rename? The directory it was in? Your home directory? Something completely different? And to what exactly did you change the permissions. I took a quick peek, but there is no "forbidden" in my konqueror. (that is what you are using, isn't it?) So now, you are in "failsafe". Have you logged in? Under your own account? or as root? And all that stuff above, was that your presonal account, or root? If you log in in a different account, does that work for you? You are in failsafe. Can you still not open you home or konsole? If no, what error do you get? Groetjes, Kees-Jan |
Ah, great! you are at a command prompt.
What is the output of Code:
echo $HOME Code:
ls -ld ~ Kees-Jan |
Really simple:
In my home directory you can right click with your mouse and create a folder. This is what I did. I created a new folder. The folder was empty. I then moved some downloaded files into this newly created folder. I wanted to rename some of the names of the files stored within that "new" folder I just created. I experimented with only one of the files, now I right clicked on the 1 file and changed the name. When I changed the name of that 1 file, I backspaced out of the folder and locked the folder by selecting the word "forbidden". You can do this by going to that specific folder and right clicking and going to properties, and I changed all 3 selections to "forbidden", which was a big mistake, as I have previously stated. When I X'ed out of my directory, I got an error message imeadiately and I got all those problems I described. I was able to get into failsafe mode by logging in as user, I do not believe I was able to get in as su, but I am not sure. I was able to remove that 1 file that I had changed the name, but I still get that error message when I try to reboot because I assume the file cannot be changed, eventhough it shows removed, because I was able to remove it. I hope that makes sense. As for getting into Konsole in failsafe mode? I did not try, as I would not know what to do. I made a HUGE mistake by changing those selections to forbidden. Is there anyway I can restore it? d-1 Quote:
|
type ls -l /home and make sure you didnt remove read/write access from your home direcotory
|
Kees,
I am lost; I logged in as "su" and I typed in "echo $HOME" just like you said I then get this below: root [root@localhost /] I then type in this: "ls -ld~" And I get this: drwx------ 17 root root 4096 Sep 16 01:14 /root/ [root@localhost /]# ???? d-1 Quote:
|
I typed in "ls -l /home"
And it says this: Total 4 d-------- 44 stan stan 4096 Sep 17 01:16 stan/ d-1 Quote:
|
ok now type chmod 755 stan and all should be fixed
|
In simple terms can I unlock that folder with failsafe mode and will it fix my problems?
d-1 Quote:
|
I tried typing that 'chmod 755 stan' and it says cannot access stan, no such file or directory.
Please note that "stan" is my user name. d-1 Quote:
|
alright, type chmod 755 /home/stan
|
Login as root (su/failsafe mode) and type
chmod -R 755 /home That should fix your problem. Let us know what happens. |
Ok I have done that and it goes through but nothing happens, does that mean I should reboot?
in other words, all it does is it puts me back at the [root@localhost stan]#_ prompt. d-1 Quote:
|
well type ls -l /home once more and see if it gave the permisions correctly. It should look like this
drwxr-xr-x 99 kilroy 4096 Sep 17 01:02 kilroy/ ^specificaly this part if it does, just reboot |
Ok I am getting confused, I am rebooting and see what happens.
d-1 Quote:
|
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Baby!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It worked and you guys are great, I am back to desktop and everything was saved!!!!!! Yahooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo! cry: d-1 Quote:
|
Just glad i could help =)
|
Hey I am telling you; you made my day, I knew I could do a reinstall, but it proves if you are patient and wait it out, something good my come out of it.
By the way, what does chmod mean? Change modification? Thanks, Again.... d-1 Quote:
|
chmod changes the permisions of files/folders. type man chmod for the man page.
Basicly it looks like this 4 == execute +x 2 == write +w 1 == read +r just add them up to get the permisions(1=read,2=write,3=read/write,6=write/execute,etc...) and the order is (owner)(group)(other) so 755 would be 7(read/write/execute) to the owner, 5(read/execute) to group, and 5 to everyone else as well |
I see great to know this.....
d-1 Quote:
|
All times are GMT -5. The time now is 01:17 AM. |