LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Changing Files without permission (https://www.linuxquestions.org/questions/mandriva-30/changing-files-without-permission-231764/)

dolphans1 09-17-2004 09:19 AM

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

dolphans1 09-17-2004 09:43 AM

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]
Any suggestions?

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?


kees-jan 09-17-2004 09:46 AM

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

kees-jan 09-17-2004 09:50 AM

Ah, great! you are at a command prompt.

What is the output of
Code:

echo $HOME
What is the output of
Code:

ls -ld ~
Groetjes,

Kees-Jan

dolphans1 09-17-2004 10:07 AM

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:

Originally posted by kees-jan
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


AAnarchYY 09-17-2004 10:12 AM

type ls -l /home and make sure you didnt remove read/write access from your home direcotory

dolphans1 09-17-2004 10:15 AM

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:

Originally posted by kees-jan
Ah, great! you are at a command prompt.

What is the output of
Code:

echo $HOME
What is the output of
Code:

ls -ld ~
Groetjes,

Kees-Jan


dolphans1 09-17-2004 10:19 AM

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:

Originally posted by AAnarchYY
type ls -l /home and make sure you didnt remove read/write access from your home direcotory

AAnarchYY 09-17-2004 10:21 AM

ok now type chmod 755 stan and all should be fixed

dolphans1 09-17-2004 10:21 AM

In simple terms can I unlock that folder with failsafe mode and will it fix my problems?

d-1



Quote:

Originally posted by dolphans1
I typed in "ls -l /home"

And it says this:

Total 4

d-------- 44 stan stan 4096 Sep 17 01:16 stan/



d-1


dolphans1 09-17-2004 10:24 AM

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:

Originally posted by AAnarchYY
ok now type 'chmod 755 stan' and all should be fixed

AAnarchYY 09-17-2004 10:25 AM

alright, type chmod 755 /home/stan

pavgust 09-17-2004 10:28 AM

Login as root (su/failsafe mode) and type

chmod -R 755 /home

That should fix your problem. Let us know what happens.

dolphans1 09-17-2004 10:31 AM

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:

Originally posted by AAnarchYY
alright, type chmod 755 /home/stan

AAnarchYY 09-17-2004 10:34 AM

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


All times are GMT -5. The time now is 09:05 AM.