LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-17-2004, 09:19 AM   #1
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Rep: Reputation: 35
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
 
Old 09-17-2004, 09:43 AM   #2
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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?


Last edited by dolphans1; 09-17-2004 at 09:47 AM.
 
Old 09-17-2004, 09:46 AM   #3
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
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
 
Old 09-17-2004, 09:50 AM   #4
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
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
 
Old 09-17-2004, 10:07 AM   #5
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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
 
Old 09-17-2004, 10:12 AM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
type ls -l /home and make sure you didnt remove read/write access from your home direcotory
 
Old 09-17-2004, 10:15 AM   #7
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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
 
Old 09-17-2004, 10:19 AM   #8
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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
 
Old 09-17-2004, 10:21 AM   #9
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
ok now type chmod 755 stan and all should be fixed

Last edited by AAnarchYY; 09-17-2004 at 10:24 AM.
 
Old 09-17-2004, 10:21 AM   #10
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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
 
Old 09-17-2004, 10:24 AM   #11
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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
 
Old 09-17-2004, 10:25 AM   #12
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
alright, type chmod 755 /home/stan
 
Old 09-17-2004, 10:28 AM   #13
pavgust
Member
 
Registered: May 2003
Distribution: Debian
Posts: 40

Rep: Reputation: 15
Login as root (su/failsafe mode) and type

chmod -R 755 /home

That should fix your problem. Let us know what happens.
 
Old 09-17-2004, 10:31 AM   #14
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,041

Original Poster
Rep: Reputation: 35
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
 
Old 09-17-2004, 10:34 AM   #15
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing permission jaakkop Slackware 1 09-29-2004 12:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 01:41 PM
Changing permission on commands erraticassassin Slackware 3 07-13-2004 02:46 AM
Changing access permission LinuxVirgIan Linux - Newbie 16 07-05-2004 08:59 PM
changing permission of files on vfat hd. SamJ Linux - Newbie 3 02-26-2004 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration