Hello, I shrunk the size of the partition that openSUSE 12.1 is on the I ran BOOT_REPAR Disk and when I try to log into openSUSE it says that
“Could Not update ICEauthority file /home/…/.ICEauthority”
Any Ideas???
Thank you.
Does the user own that file? Did you change uids (the numerical ids for user) and that lock that user out from his own files?
I am the user. Did not change usr or anything other than shrink the partition and try to log into openSUSE again as Administrator.
Did you log into a GUI as ROOT this can cause the ownership to change to root. Never log into a GUI as root!!!
fix
reboot and start in terminal by entering a 3 then enter at boot screen
log in as root (note this is ok it is not a GUI)
cd to your users home directory then delete the .ICEauthority (note the period a leading period indicates a hidden file.
rm .ICEauthority
at home directory for user
reboot by typing reboot
this should get you back
and don’t log into a GUI as root anymore there is never a need to do this.
I tried it it didn’t work would not let me delete it< say’s no such file. I don’t think I understand about loging in as root. I am the only user on this computer and I just tried to login normaly username and password. Is there a way to show hidden files in terminal? I am in the failsafe mode right now.
Thank you for your time.
$ ls -a
will list all files, including hidden ones.
Or you can install the Midnight Commander. It’s very helpful.
$ su -l
# zypper in mc
Be aware that after using “su -l”, you are ‘root’. You should type ‘exit’ to exit the root shell.
To start Midnight Commander, just type
$ mc
Select the file you want to delete and presse F8 to delete it. But be careful with this program! When you delete a file, it’s gone.
Deleting ~/.ICEauthority and ~/.Xauthority will most likely solve the problem. Also make sure /tmp has the sticky bit and is writable by anyone:
$ stat /tmp
File: `/tmp'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 809h/2057d Inode: 2 Links: 10
Access: (**1777/drwxrwxrwt**) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-08-28 18:29:08.168174411 -0700
Modify: 2012-08-28 18:35:25.926103609 -0700
Change: 2012-08-28 18:35:25.926103609 -0700
Birth: -
And if you see a file /tmp/.X0-lock while X is NOT running, delete it!
Thank you for the help. When I log into failsafe mode it tells me
No directory /home/username!
Logging in with home = “/”
Maybe that is why I can’t see the .ICEauthority or .Xauthority? I have tried ls -a.
I can’t see files to delete them and when I try
it just tells me “no such file or directory”.
I am at a loss. This is weird all I did was shrink the partition by 10 gigs and then I tried to log in and Poof!
You have the answer. The home directory of your user doesn’t exist (anymore)… or the /home partition - if you have a separate one - wasn’t mounted (or has changed number or was deleted).
Well … shrinking partitions is not always a good idea, you know. Now we’ll need to see the ouptut of:
$ su -l
# fdisk -l
# df -hl
# cat /etc/fstab
at least … (lspart](http://forums.opensuse.org/english/other-forums/development/programming-scripting/475610-lspart-alternative-fdisk-l-8.html#post2468385) would be better but… )
#fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 136313571 68155762 83 Linux
/dev/sda2 136314880 199225419 31455270 83 Linux
/dev/sda3 222050304 234440703 6195200 82 Linux
/dev/sda4 199227392 222050303 11411456 83 Linux
df -hl
Filesystem Size Used Avail Use% Mounted on
rootfs 64G 5.4G 56G 9% /
devtmpfs 1001M 12K 1001M 1% /dev
tmpfs 1007M 4.0k 1007M 1% /dev/shm
tmpfs 1007M 708K 1006M 1% /run
/dev/sda1 64G 5.4G 56G 9% /
tmpfs 1007M 0 1007M 0% /sys/fs/cgroup
tmpfs 1007M 708K 1006M 1% /var/run
tmpfs 1007M 708K 1007M 1% /var/lock
tmpfs 1007M 0 1007M 0% /media
/dev/sda4 11G 156M 11G 2% /home
cat /etc/fstab
/dev/disk/by/-id/ata-Toshiba_MK1237GSX_670MT1LIT-part3 swap swap defaults 0 0
/dev/disk/by/-id/ata-Toshiba_MK1237GSX_670MT1LIT-part1 / ext4 acl,user_xattr 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by/-id/ata-Toshiba_MK1237GSX_670MT1LIT-part4 /home ext4 acl,user_xattr 1 2
/dev
OK. /home is present, mounted and looks pretty empty. Now what’s the output of:
# ls /home
And the ouput of:
# grep yourname /etc/passwd
Where ‘yourname’ is your user name, the one who’s not able to log in anymore.
lost+found
that’s it.
lost+found was for ls /home comand
grep username /etc/passwd
username:x:1000:100:USERNAME:/home/username:/bin/bash
openSUSE is on partition sda1.
I’m assuming you’re root.
- unmount and check /dev/sda4
# cd /
# umount /dev/sda4
# fsck /dev/sda4
- if it shows no error, remount it
# mount /home
- delete your user (I can’t see a better solution):
# userdel yourusername
- create your user again (it should create an populate a home directory with some default files)
# useradd yourusername
- Assign a password to the new user:
# passwd yourusername
That should do it. Now log out from the root account, log in as your new user and change the password if you like by typing passwd as this user.
Of course you don’t have to since I guess you’re trusting your sysadmin ( = yourself).
Anything in lost+found???
in this put your user name in for username
grep username /etc/passwd
or is that your user name LOL
I don’t know why your /home partition is empty. But everything that was there before is lost now (not because you just deleted the user, but because something went wrong as you shrunk the partition.)
wouldn’t let me delete username, said it was in use. I created another username and pass and when I tried to log in I got the same thing.
This is a lesson learned. openSUSE seems to be a little picky about partitioning. Doesn’t openSUSE 12.2 come out SEP.5?
May just wait and reinstall.