LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2006, 02:20 PM   #1
secondvijai007
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
Unhappy All sorts of problems.... dealing with permissions


I'm not really sure in which forum this fits, but I think this is probably the best place to get answers. I've been plagued by all sorts of problems on Ubuntu these past few days.

First, when i logged on to my computer about three days ago, I got an error while logging in which went something along the lines of "Your $HOME/.dmrc file has incorrect permissions.... it should have permission 664 and be owner by user." After Google-ing the topic, i found that i just had to change the file's permissions. I went into the terminal and then changed the permissions, and it didn't work. So I kept trying. BTW, I was doing this through my root account as I couldn't access anything from the login screen (not even failsafe gnome). I tried the failsafe terminal, but i read somewhere that it was easier to do it graphically...

So I played around with the permissions AND ownership status for my /root folder, /home folder and /home/username folder (due to the stuff i found on this and other forums), and in the process, i somehow managed to lock myself completely from even getting to the login screen. Im totally lost, and i really need some help. I would really hate to reformat my laptop, as that wouldn't be the first time(more like the fourth or fifth time.) When i turn on my laptop,i get to the root-account style screen, and it asks me for my username and password, which after i give correctly am told that the computer is "unable to cd to /$HOME/username" or something similar.

To top it all off, for some reason i can access the internet anymore, even through my root account. I was able to at first, but i dont know whether it was coincidence or my doing for this problem to occur. I really really need help.

Thanks for any help in advance

P.S. I think this can be solved if someone could just tell me how to set the permissions for the folders back to default. It would be even better if there was some tool like system restore in ubuntu that would help me turn back the clock and fix everything.
 
Old 04-05-2006, 03:45 PM   #2
fiery_ice
Member
 
Registered: Sep 2005
Location: Ontario
Distribution: Debian, Ubuntu
Posts: 33

Rep: Reputation: 15
http://www.linuxquestions.org/linux/..._in_Unix_Linux
Read that, and understand it.

You could boot into a live linux cd such as knoppix, and change the file permissions from that OS. Ubuntu also has a live cd, I believe. Other live linux distros include knoppix-std, damn small linux, etc. (you will need to know how to mount partitions)

You should also be able to fix the file permission in failsafe mode (run level 2) under your local install.]

Don't forget the commands "chown" and "chgrp" that will. those combined with "chmod" will solve your problems.

Last edited by fiery_ice; 04-06-2006 at 11:28 PM.
 
Old 04-05-2006, 04:10 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Boot up from a live CD, "Ultimate Boot Disk", etc. and go into your directories to reset the permissions. If that does not work, then re-install may be the easiest route.
Does the Ubuntu CD let you boot up in a rescue mode or something??--I don't have it with me at work.
 
Old 04-05-2006, 04:11 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OOPs--duplicate
 
Old 04-05-2006, 04:40 PM   #5
secondvijai007
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you both for your quick replies.

Yes, I know that there are different ways to reset my file permissions, (that is what i have been playing with using my root account), but it's just that I dont know what it is that i have to change them to. Would it be advisable to copy the permissions that appear on the files in the live cd? I know I did something similar for some of my files when i was using debian prior to ubuntu to solve some problems. I've tried chown, chgrp and chmod on all three of these files/directories, and its just that i dont know what the system requires the permissions to be. Thanks again...

EDIT: Well, i cant really boot into failsafe mode (I think), seeing as how im not even able to get to the login screen anymore

Last edited by secondvijai007; 04-05-2006 at 04:44 PM.
 
Old 04-06-2006, 08:01 PM   #6
d_GeNeRiT
LQ Newbie
 
Registered: May 2004
Location: Miami, FL
Distribution: Fedora Core 5
Posts: 28

Rep: Reputation: 15
Ok, I figured it out.

If u can get into the X gui then its a peice of cake. Otherwise just chmod 777 -R /home/usernamethatisscrewedup

That should let u in and then follow my procedure below. Keep in mind that I am using Fedora 5 but it should still be relevant to your situation.

First I went to Taskbar menu on the Desktop and chose System > Administration > Users and Groups

I then entered my root pw when prompted to do so

I clicked ADD USER button on the top.... I filled in the first 4 fields and left everything else with the default settings. The new user I created was "Bozo".

Now I logged out and logged back in as the new user name that I created. I then used Nautilus to navigate to the path: /home/. I right clicked on the folder named Bozo and chose Properties. I went to the tab named Permissions. I made no changes here, I just made a note of the settings. On the part that said Owner all 3 checkboxes where ticked and no checkboxes where ticked under Group or Others.

Then I logged out of the Bozo session and logged back in as the username with the screwed up .dmrc error. The error was still there of course since I hadnt changed anything. I then navigated to /home/ and right clicked on the folder with the name of screwedupuser and chose properties. Then I ticked the same checkboxes that I made a note of in Bozo before. I then logged out and logged back in and the error is gone.

Let me make some suggestions to the rest: Dont modify the permission on your entire home directory like I did. Not only will it make your system very unsecure but it will throw up errors as u can see. Rather, what I did was create subfolders inside of /home/username called downloads, music, movies, mydocs, extracted, warez and so on. And on those subfolders I just chmod 777 -R on them so I dont get anymore pesky errors about I dont have permissions to overwrite this or that.

Hope this helps someone!
 
Old 04-06-2006, 11:29 PM   #7
fiery_ice
Member
 
Registered: Sep 2005
Location: Ontario
Distribution: Debian, Ubuntu
Posts: 33

Rep: Reputation: 15
yea... all this is covered in the link i provided... if you can gain a root bash.
You're welcome secondvijai007

Last edited by fiery_ice; 04-06-2006 at 11:41 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mutt sorts non existent mail ernobe Debian 0 12-17-2004 08:18 AM
X11 Forwarding over SSH all sorts of problems lucastic Linux - Networking 10 08-31-2004 08:34 PM
Contest (of sorts): Name this algorithm. Travis86 General 8 06-28-2004 02:00 PM
Just upgraded to 2.6.1, all sorts of problems starting up. BongFish Slackware 3 01-17-2004 09:18 AM
When in doubt, buy all sorts of hardware! TheOneAndOnlySM Linux - Newbie 6 07-17-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:50 PM.

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