LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot boot up my 32 bits centos 6.2 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-boot-up-my-32-bits-centos-6-2-a-944477/)

paruhang 05-11-2012 05:06 PM

cannot boot up my 32 bits centos 6.2
 
hi everybody,
i was not able to boot my 32 bit centos 6.2 on my machine. what i have done before is i was configuring my local ftp server so i add user
#groupadd ftpusers
#useradd user
#passwd user
#usermod -aG ftpusers -d /var/ftp/pub user
#chown root:ftpusers /var/ftp/pub
#chmod g+w /var/ftp/pub

just after some moment i saw alert something nautilus and when i reboot my system the error occurs before displaying users list and my mouse and keyboard doesn't work.

error = "could not update ICEauthority file /var/ftp/gdm/.ICEauthority"

so how can i troubleshoot that error and able to login i have important data. or is there any way to repair system without loosing my data

can anybody help me to find solutions i'll be greatful and accept any kinds of ideas and suggestions are welcome.

blue_print 05-11-2012 10:50 PM

It appears like a permission problem with the file "/var/ftp/gdm/.ICEauthority". Just try loggin into single user mode and fix the issue with this file

paruhang 05-12-2012 08:11 AM

thank you, blue_print.
for your quick reply i was able to login as single user mode but after that i don't know how to fix this problem.

djsoundfx 05-12-2012 09:38 PM

Quote:

Originally Posted by paruhang (Post 4676595)
thank you, blue_print.
for your quick reply i was able to login as single user mode but after that i don't know how to fix this problem.

What are the permissions of this file? You may need to modify them with something like (obviously you'll need to modify this code a bit):
Code:

sudo chown $USER:$USER /home/$USER/.ICEauthority
sudo chmod 644 /home/username/.ICEauthority
or depending on permissions desired:
sudo chmod 600 $HOME/.ICEauthority

If that doesn't work you may need to reinstall the package with different options (as I've heard of this being the source of the error you're having.

paruhang 05-13-2012 11:32 AM

thank you,
djsoundfx for your reply.

this is my /etc/passwd
Code:

khem:x:500:500:khem raj chamling rai:/home/khem:/bin/bash
so i was confused with this code
Code:

sudo chown $USER:$USER /home/$USER/.ICEauthority
sudo chmod 644 /home/username/.ICEauthority
or depending on permissions desired:
sudo chmod 600 $HOME/.ICEauthority

i have never use sudo command and do i have to put my username'khem'

Code:

$USER:$USER or
khem:kheem or
$khem:$khem

Code:

What are the permissions of this file? You may need to modify them with something like (obviously you'll need to modify this code a bit):
which premission file do i have to check. lastly if i reinstall centos again i have to loose all my data is there any repair mode in centos so i can save all of my data.
thank you.

chrism01 05-13-2012 07:21 PM

Assuming user and group names are khem, khem (likely), then
Code:

# set ownerships
sudo chown khem:khem /home/khem/.ICEauthority

# perm mode may need to be 600 or 644; try 600
sudo chmod 644 /home/khem/.ICEauthority

Before you start, try
Code:

sudo ls -la /home/khem
to see what you've got already.

djsoundfx 05-15-2012 10:18 AM

Quote:

Originally Posted by paruhang (Post 4677359)
thank you,

so i was confused with this code
Code:

sudo chown $USER:$USER /home/$USER/.ICEauthority
sudo chmod 644 /home/username/.ICEauthority
or depending on permissions desired:
sudo chmod 600 $HOME/.ICEauthority


See the reply from chrism01 he setup specifically what you have to do.
Quote:

Originally Posted by paruhang (Post 4677359)
i have never use sudo command and do i have to put my username'khem'

So khem has root/administrative permissions? thats a bit odd that you're having this issue then.

Quote:

Originally Posted by paruhang (Post 4677359)
which premission file do i have to check. lastly if i reinstall centos again i have to loose all my data is there any repair mode in centos so i can save all of my data.
thank you.

You do not have to lose all of your data and you DO NOT have to reinstall centos. You issue is with a single daemon/file it'd be a waste of effort to reinstall CentOS and that may not even fix your issue! Take the time to try to fix the permissions and see where that gets you. You can certainly repair your CentOS if with a liveCD or other method if you're unable to access the system or ever need to repair your bootloader but for the issue you're having you should be able to access the system and make changes without that.

djsoundfx 05-15-2012 10:19 AM

Though I just read your original post again, so can you clarify if you're unable to access the system after this error appears?

paruhang 05-15-2012 03:39 PM

thank you everybody,
for you quick reply and your help i really appreciate your support. lastly i have reinstall centos and loose my data.

THANK YOU.


All times are GMT -5. The time now is 11:52 PM.