LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem at linux start (https://www.linuxquestions.org/questions/linux-newbie-8/problem-at-linux-start-4175481384/)

nebula 10-19-2013 04:34 AM

problem at linux start
 
3 Attachment(s)
Hi everybody,
I have Scientific linux cyrillic edition 6.3 installed on the laptop. It was ok for some time, but then a failure happened. I can't choose username and type a password (i attached the photo of what i see instead of that window).
There were also problems with permissions of some files like ssh_host_dsa_key and ssh_host_rsa_key. This problem was solved using liveCD.
I also attached photos of boot messages, but it's in russian. There's a failure with auditd start and with net connection (the second one can be solved using cable).
I will be gratefull for any help with these problems.

GNU/Linux 10-19-2013 05:45 AM

Why didn't you upgrade to 6.4 which is the latest version?

nebula 10-19-2013 09:29 AM

but how to do this if i can't log in a system?

GNU/Linux 10-19-2013 11:47 AM

You can log in using single-user mode. After you are inside logged in as root user, type 'telinit 3' to go to run level 3 from where you can use networking and do 'yum update'.

John VV 10-19-2013 01:21 PM

SL6 dost have security backports to 6.3 and 6.2
but it is advisable to upgrade
"update" will not always upgrade

a "HARD" close can leave pid files all over the place

but why guess

onse you boot into single user
or better yet !!!
use the install dvd in rescue mode
and after you run " chroot /mnt/sysimage "

have a read through the system logs !
/var/log/?????
like
Code:

nano /var/log/boot.log
-------- and -----
 nano /var/log/messages

the terminal text editor " nano" should be installed by default

jamison20000e 10-19-2013 01:33 PM

[Ctrl]+[Alt]+[F1] to upgrade or,,,

nebula 10-19-2013 03:12 PM

When i try to upgrade i receive the following message after yum clean all:
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 285, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 114, in main
base.doLock()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1791, in doLock
while not self._lock (lockfile, mypid, 0644)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1857, in _lock
errmsy =_('Couldn't create lock at %s %s ') % (filename, str(msg))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: ordinal not in range(128)

John VV 10-19-2013 04:16 PM

did you by chance replace the version of python that is installed by default with some other version ?

if so , you have a very big problem .
A fixable one, but one that is easier to reinstall to fix .

can you define this
Quote:

but then a failure happened.
i read that as a power failure

but if you installed something ( like python 3.3) and THAT brought about this " failure "

then is is a very different issue than a power failure

nebula 10-20-2013 09:19 AM

I don't know what that was, but today "yum clean all" don't show such messages. I has both python 2.6 (default)and 2.7 on the laptop and they are in different directories.
As for failure - I wanted to change permissions for one folder in the root directory (it wasn't a system folder, but another installed program), but there occured some errors with terminal and chmod began to run on the other folders of root directory and then the system hanged. So after reboot i can't log in a system cause there's no window with usernames and passwords.
There's also a problem that in a single user mode su doesn't work - it says that the password is incorrect. I use sudo to upgrade (in sudoers file there's nopasswd option for my user).
Upgrade didn't help. There're no error messages from boot message window, but i still see the window with "localhost.localdomain"

John VV 10-20-2013 12:51 PM

Quote:

but there occured some errors with terminal and chmod began to run on the other folders of root directory and then the system hanged
fixable
but not if yum is not working

if the permissions of the files and / or folders in "/" are wrong SE will stop the boot

what is in the error logs ?

use the install dvd in rescue mode and look at the logs !

if the yum/rpm database is not messed up you might try this
Code:

for f in $(rpm -ql zip); do ls -l $f; done
--- and ---
for p in $(rpm -qa); do rpm --setperms $p; done
--- and --
for p in $(rpm -qa); do rpm --setugids $p; done

that is it you can log in
if not

it will be easier to install sl6.4

nebula 10-20-2013 03:18 PM

I tried this
Quote:

for f in $(rpm -ql zip); do ls -l $f; done
--- and ---
for p in $(rpm -qa); do rpm --setperms $p; done
--- and --
for p in $(rpm -qa); do rpm --setugids $p; done
but it didn't help. So I see only one way - to reinstall system (
Thanks everybody for answers

jamison20000e 10-20-2013 03:23 PM

Don't forget to back up any data you need from the drive?


All times are GMT -5. The time now is 10:23 PM.