LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-24-2007, 04:39 PM   #1
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Rep: Reputation: 0
Cannot log into administrative account


Ubuntu 7.10

Whenever I try to log into my (only) administrative account I get this message:

GNOME session manager cannot lock the file /home/user/.ICEauthority.

(The user part is actually a name)
It also says to try logging into the failsafe session but it will not allow me to log in there either.

All of my stuff and all administrative can only be accessed (without logging to root) from that account, so I kind of need to be able to log in there.
 
Old 11-24-2007, 05:39 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
At the login screen, do CTRL-ALT-F1 and login to the terminal as your normal user. After that do
Code:
$ls -l ~/.ICEauthority
Is this file owned by the same user who owns the account?
 
Old 11-24-2007, 06:17 PM   #3
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
CTRL-ALT-F1 does not do anything on my login screen. (Could having two accounts do that?)

Yeah, my account and file.
 
Old 11-24-2007, 06:31 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
CTRL-ALT-Fn (where n is between 1 and 6) should show you a terminal. Backup the file, then delete the original and try logging into GNOME.
 
Old 11-24-2007, 06:40 PM   #5
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
I tried F1-6 and it didn't do anything.

Is it possible to do the backup and delete using the terminal of a (non administrative) different account?
 
Old 11-24-2007, 06:51 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If your "administrative account" is a member of the "root" group, using a GUI desktop with that account presents the same security issues that would be raised by running a GUI as "root."

Anyhow, you shouldn't need to do the C-A-Del stuff: a simple sudo ls -l /home/user/.ICEauthority should suffice to let you see any permission problems, and a sudo chmod or sudo chown (whichever is needed) should fix them for you.
 
Old 11-24-2007, 07:04 PM   #7
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
(Oh dear, my total-linux/command line-noobosity is showing! )

Okay, PTrenholme, some questions because I am a linux/command line noob.
1) Can I do the sudo ls, etc. thing on the terminal of this guest account I'm using right now even though it does not have administrative privilages?
2) What do you mean by 'permission problems'?
3) I have no idea what sudo chmod or sudo chown is and I get the feeling that it's probably not going to tell me. If the sudo ls, etc. thing works how will I know which to use?

(p.s. If the create a user or manage groups thing isn't in the menu of this account because my sister kept messing with it, is there a way to open that to see if my normal account got accidently switched to the "root" group or something.)
 
Old 11-24-2007, 08:00 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
1) You should be able to do the sudo from (almost) any Ubuntu "regular" user account. Try it and see what happens. I think that Ubuntu puts all users in the /etc/sudoers file by default. (If you're the administrator, and your sister is "messing," perhaps you should consider removing her from the sudoers file.)

2) I assumed from the "cannot lock" message that the ownership of the hidden ICE authority file had been changed. (That often happens when someone other than the owner is in the directory and that someone uses, e.g., an editor, that needs the authority, and, further, that that someone has (implicit) permission to "overwrite" the authority file. This "overwrite" process is often automatic.)

3) The two commands (chown and chmod) are used to change the ownership and permissions, respectively, on a file. Look at man chown and man chmod for details.

On the "cannot lock" problem: look in /var/lock/subsys/ to see if a lock is set on the program you're trying to run. (It shouldn't be, because all locks should be erased when the system is rebooted.) Oh, by "look in," I mean "do something like ls -l /var/lock/subsys/."
 
Old 11-24-2007, 10:25 PM   #9
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Reboot the computer

Select recovery mode (usually the second boot option)

This will log you into a root terminal

Type
Code:
chown username:username /home/username/.ICEauthority
where username is the username of the user you can't log onto.

Then type
Code:
shutdown -r now
 
Old 12-03-2007, 08:05 AM   #10
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, sorry it took so long but I've been busy.

chown username /home/username/.ICEauthority
while under recovery mode, no effect.

ls -l /var/lock/subsys/
"No such file or directory"

Any more ideas?
 
Old 12-03-2007, 11:43 AM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Did you do those commands whilst logged in to the "Recovery" terminal session?

If so, what is the output of ls -l /home/username/.ICEAuthority?

Again, in the recovery console try a mv /home/username/.ICEAuthority /home/username/.ICEAuthority~
That should force the X server to recreated the hidden .ICEAuthority file when you next try to start your GNOME session. If that works, just delete the .ICEAuthority~ file since you will no longer need it. (It's just a back-up file in case this doesn't work.)
 
Old 12-05-2007, 09:18 PM   #12
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Yeah, I did those while logged into the recovery terminal.

The output was
Code:
-rw ------- 1 username root 1062 Nov. 24 14:43 /home/username/.ICEauthority
I tried the other thing but I just realized that I spelled something wrong so I'm going to go try it again.

How do I delete a file I don't know the location of? I've never heard of a .ICEauthority before.
 
Old 12-05-2007, 09:26 PM   #13
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Re-did the other thing.

Output:
Code:
 mv: cannot stat /home/username/.ICEauthority : no such file or directory
 
Old 12-23-2007, 12:59 PM   #14
AndromedaStrain
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Help?

Anyone have any more ideas?
 
Old 12-23-2007, 05:13 PM   #15
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
yes....
just do what ubuntu intends you to do and only work as a normal user,
every time you want to do anything admin wise use sudo (or gksu the graphical equivalent)
ubuntu shoudl be set to do this automatically
 
  


Reply

Tags
account, iceauthority, ubuntu



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
Can't log into user account nenochka9 Linux - Security 11 01-23-2006 06:33 AM
cant log into msn passport account! randell6564 Fedora 6 01-09-2006 03:42 PM
unable to log in to a user account cheema Mandriva 1 12-25-2004 09:34 AM
ftp cannot log in using new user account wendallsan Linux - Software 0 12-07-2004 08:31 PM
can't log in since no user account exists scarecrow Linux - Newbie 13 09-11-2004 02:02 PM

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

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