Linux - GeneralThis forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have just got a new computer and installed fedora 7 onto it, I have put the hard disk that contains /home into it and mounted as /home. My user name etc is still the same as it was in arch linux that previously accessed /home on this drive.
however when I try to log in I'm unable to getting error messages
Code:
User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved.
File should be owned by user and have 644 permissions. Users $HOME directory must be owned by user and not
writable by other users.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Thanked: 4
It looks like your home directory is actually owned by a user with a different UID than you. Some distros start UIDs from 1000, others from 500. While you may have the same username on both, you don't necessarily have the same UID.
Login as root, and chown and chrgp your home directory to your user. Use the -R switch to both commands to make the change recursive through your home directory.
Distribution: Gentoo - Desktop; Distro hoping with the Laptop
Posts: 51
Thanked: 0
Original Poster
Thanks for your help, but i'm still having problems
I tried
Quote:
chown -R mike:users /home/mike
but when i try to log on using my normal user account i'm getting the following error
Code:
localuser : mike being added to access control list
/home/mike. bashrc : line 26 :/home/mike .dbus-env : permission denied
mktemp: cannot create temp file /home/mikeKDE.start .p3294 : permission denied
/usr/bin/startkde : line 41 : $test file_home : ambiguous redirect
you don't have permission for /home/mike
Sorry to have to say this, but your permissions are completely screwed!
That chmod -R 500 /home/mike that you did in post#3 made none of your files writeable by yourself: A bad start.
Really, I think you would find it easier to start again:
Create a new user for yourself eg mick. Make sure the user mick has a UID /GID > 1000, to avoid this sort of problem in the future.
Then, as root, copy all your personal files (not.configuration files that are installed for gnome / kde / your mail program etc) from /home/mike to a new directory (eg Oldfiles) on your new (mick's) desktop. Then (as root) fix up the ownerships and permissions for all the files in Oldfiles. When you are happy mick can access them, wait another couple of days (you always forget something!), then remove the user mike, because that is a real mess!
A lesson in the power of chmod -R and chown -R - we've all had to learn it (well, I did!)
If I understand your original post you did the installation and then added the drive with your /home partition. If this is the case, your installation created a /home/mike partition on the drive where you installed the OS. You could check your /etc/fstab to see if the correct device is being mounted as /home.
I'd recommend for your next install to have the /home drive present in the machine. You can just tell the installer not to format the /home drive and be sure that it is specified as /home (or /home/mike) at installation. Then it'll show up in /etc/fstab and be mounted on boot.
Distribution: Gentoo - Desktop; Distro hoping with the Laptop
Posts: 51
Thanked: 0
Original Poster
Quote:
Originally Posted by tredegar
Sorry to have to say this, but your permissions are completely screwed!
That chmod -R 500 /home/mike that you did in post#3 made none of your files writeable by yourself: A bad start.
Really, I think you would find it easier to start again:
Create a new user for yourself eg mick. Make sure the user mick has a UID /GID > 1000, to avoid this sort of problem in the future.
Then, as root, copy all your personal files (not.configuration files that are installed for gnome / kde / your mail program etc) from /home/mike to a new directory (eg Oldfiles) on your new (mick's) desktop. Then (as root) fix up the ownerships and permissions for all the files in Oldfiles. When you are happy mick can access them, wait another couple of days (you always forget something!), then remove the user mike, because that is a real mess!
A lesson in the power of chmod -R and chown -R - we've all had to learn it (well, I did!)
Bugger,
there are somethings that you shouldn't rush and i guess that pissing about with permissions is one of those things, if i had stepped back and thought about what i was going to do i probably wouldn't be in this mess. however work got in the way and i was under pressure to get it fixed before going away.
I guess i'm going to have to fix all this on the weekend.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.