LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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


Reply
  Search this Thread
Old 01-06-2008, 04:21 PM   #1
jdege
LQ Newbie
 
Registered: Aug 2006
Posts: 15

Rep: Reputation: 0
GDM could not write to the authorization file


Using CentOS 5:

I backed up my working drive, using 'tar --preserve --xattrs'

Actually, I backed up LVM snapshots of the partitions on my working drive, except for the /boot partition, which I remounted ro for the duration of the backup, so the file images should be clean.

I restored them to a new drive, using 'tar --preserve --xattrs'.

I booted from CD, and ran Grub to configure the new drive to boot, and booted.

GDM comes up fine, but when I try to log in as an ordinary user, I get the error: "GDM could not write to the authorization file".

Googling around shows this is most commonly the result of full partitions. In my case, it's not. A check of 'df -k' shows no partition with more than 50% used.

The only other possibility I can think of are permissions. I boot as root, and look around the file system, and they all _look_ ok. But clearly something is not right.

The immediate question is what? What files or directories should I be looking at, and what permissions should they have?

The more important question, if it turns out that the problem really is a matter of permissions, is why did tar, run with --preserve and --xattrs, not preserve them. And what can I do to make it do so?

===
Addl info - on thinking about it for a bit, I realized I hadn't set the root user's umask, prior to running the untar.

I reformatted the target partitions, and reextracted the tar files, with umask set to 0, and had the same results.
===
Another update - I replaced the backup utility with dump/restore, instead of tar, and I'm still getting the same results.

At this point, I'm at a loss. Restore should restore files without any possibility of modification - no chance of messing up permissions, ownership, or ACLs. But I still get the "unable to write" error.

The only thing I can think of to try now is to add /tmp to my backup set, in the off chance that somebody was stupid enough to write a dependency into a file there.
===
Final update: I added /tmp to my backup set, and now the process is working. There is something, in the GDM authentication process, that is relying upon a file or directory in /tmp being there - which is, in my mind, a fundamentally flawed dependency.

Last edited by jdege; 01-08-2008 at 12:55 AM.
 
Old 01-08-2008, 03:33 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Final update: I added /tmp to my backup set, and now the process is working. There is something, in the GDM authentication process, that is relying upon a file or directory in /tmp being there - which is, in my mind, a fundamentally flawed dependency.
Sounds like you're right; I wouldn't like anything to depend on anything in /tmp either..

Good you got it solved. I would have suggested to check the user/group ID numbers in the new system, in case the backups' permissions were for the right users/groups (in alphabets) but the new system had different ID numbers for the same names. Luckily it wasn't that..
 
Old 01-08-2008, 07:09 AM   #3
jdege
LQ Newbie
 
Registered: Aug 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by b0uncer View Post
Sounds like you're right; I wouldn't like anything to depend on anything in /tmp either..
I don't think there's anything wrong with depending upon files in /tmp, I just think there's something wrong in depending upon their not disappearing. If they're not there, GDM should be able to reconstruct them, rather than fail.
 
Old 01-08-2008, 08:25 PM   #4
jdege
LQ Newbie
 
Registered: Aug 2006
Posts: 15

Original Poster
Rep: Reputation: 0
OK - I figured it out.

GDM wasn't depending upon anything that was in /tmp, it was depending upon the ability to write to /tmp.

And my restore process, when I didn't restore /tmp, left it with perms of 755 (mkdir with a umask of 022). And GDM would not be able to write a cookie file to it.

When I did restore /tmp, restore would set the perms to 1777, and GDM would be able to write a cookie file to it.

Lesson learned, when doing a restore with dump/restore, make sure to set the perms on all of the mounted partitions you aren't restoring, because restoring / won't set them to what they had been.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GDM could not write my authorization file . (Low Disk space ) Ankit Sharma Linux - General 7 03-19-2008 02:37 PM
"GDM cannot write to your authorization file...etc" Malacandra Linux - Newbie 1 02-16-2006 10:18 PM
GDM could not write to my authorization file ?&*%$^ carlos1 Linux - Newbie 4 09-09-2005 12:55 AM
GDM could not write authorisation file distantlyyours Slackware 3 02-25-2004 06:27 AM
GDM could not write to your authorisation file... rahaydenuk Linux - General 1 01-25-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:25 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