RHEL 5.9 going to maitenance mode

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat RHEL 5.9 going to maitenance mode
# 8  
Old 06-21-2013
So, this tells us that any users not in the group root cannot start the bash shell, therefore they cannot log in either. Is there a reason that the permissions are set this way? Normal permissions would be -rwxr-xr-x

It would suggest that a blanket chmod has been performed as both /bin/bash and /etc/shells have the same. /etc/shells would normally be rw-r--r--

Has someone done a rather wild change, such as:-
Code:
find / -exec chmod 750 {} \;

If this is the case, then you have a problem and there could be all sorts of other things wrong. Don't just try to reverse it with another find to set them all to something else. That could make things 'different'. Some things could start working again, but your security could be all over the place.

What do you have for:-
Code:
ls -l /bin/rm /etc/securetty /etc/sudoers /etc/shadow

and various other directories?



Robin
This User Gave Thanks to rbatte1 For This Post:
# 9  
Old 06-21-2013
due to some installation problm permission got set that way. no body set that way.

Here it is what you ask for:

ls -l /bin/rm /etc/securetty /etc/sudoers /etc/shadow
-rwxr-x--- 1 root root 47088 Mar 14 2012 /bin/rm
-rwxr-x--- 1 root root 122 Feb 17 2003 /etc/securetty
-rwxr-x--- 1 root root 1372 Jun 19 22:18 /etc/shadow
-rwxr-x--- 1 root root 3412 Jan 28 03:15 /etc/sudoers


help me out to make things right.
and thanks a lot m learning things.

---------- Post updated at 08:00 AM ---------- Previous update was at 07:45 AM ----------

Quote:
What do you have for:-
Code:
ls -l /bin/rm /etc/securetty /etc/sudoers /etc/shadow

and various other directories?
what you mean by various other directories?
# 10  
Old 06-21-2013
* * * * * * * * * * * * * * * * * * * *
I would strongly suggest avoiding a boot until we know more.

* * * * * * * * * * * * * * * * * * * *


What I was wondering was if you explore other directories, do you find that all the files there have the same ownership and permissions. This might include where you put data, reference files or code even. It is possible that they have all been adjusted.

The standard directories you could have a look in are things like:-
  • /boot
  • /dev
  • /etc, especially /etc/rc.d or /etc/init.d
  • /lib
  • /sbin
  • /sys
  • /usr especially /usr/bin, /usr/lib and /usr/sbin
  • /var, especially /var/log, /var/opt and /var/spool
You could also look in user home directories wherever they are. Some have them in /home, others have them in /usr/home and yet more move them away completely. We have some in /actuarial even!


You also need to consider what your backup position is. We may end up having to get back with them. Not necessarily a restore, but depending what and how you have things, you may be able to get the permissions from there. Failing that, if you have a RH support contract then they may be able to direct you to run something that verifies/resets all the critical system permissions.



Robin
# 11  
Old 06-21-2013
I got the scene what had happened there.
I checked for the permission for above said directories. I have attached the file of command output. I fear about backup, Might not possible. Without RHN support is there any funda I can reset whole system permissions, Without reinstalling the system? Please provide your points:
Attached is the file, take a look at it please.

Thanks,
# 12  
Old 06-21-2013
Smilie That doesn't look too good. Smilie

I found this:- How to: Linux reset the permissions of the installed rpm packages with -setperms option which might help a bit. Read it very carefully. I'm not sure how effective it will be. You might need to loop round every installed package, perhaps with rpm -qa giving you the list to work through.


Have a think if that is a good plan. Backups at this point before you start would be a good thing. Make sure you can restore a blank machine with your method. There isn't an easy "make me a boot tape" process like you get with AIX & HP-UX, but I hope you have procedures for what works for you already.



Let us know how you get on. Any other suggestions from other member would be gratefully received! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in? standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies

2. Red Hat

Is it possible to install RHEL 7 on top of RHEL 6?

Hi We have RHEL 6.7 on an HP physical server and want to install RHEL 7 (not upgrade) on top of it by means of virtualization. Is it possible to install/configure RHEV/KVM virtualization on base RHEL 6.7 OS instance and then install RHEL 7 as a VM guest on it? If yes, could you please guide me... (1 Reply)
Discussion started by: magnus29
1 Replies

3. UNIX for Dummies Questions & Answers

Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine. I... (3 Replies)
Discussion started by: hr.prasan
3 Replies

4. Red Hat

RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies

5. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

6. Solaris

DNS service is in maintenance mode. How to bring it back to online mode?

:confused: when i tried to look the status of DNS-client, it is in maintenance mode..... Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE... :wall: (2 Replies)
Discussion started by: vamshigvk475
2 Replies

7. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

8. UNIX for Advanced & Expert Users

What is the difference between single line mode and multiline mode in Regular expressions?

Hi All, Can please let me know what is the difference between the single line mode and multi line mode in regular expresions? Thanks, Chidhambaram B (3 Replies)
Discussion started by: chidhu.anu
3 Replies

9. Red Hat

I cannot find ext2online or resize2fs in RHEL 4 rescue mode

Hi, I'm trying to resize an ext3 FS (filesystem) under an LVM. I have booted the OS (RHEL 4) in rescue mode using the CD media and I'm able to use lvm commands. Now, I'm trying to shrink the filesystem before actually shrinking the logical volume but I cannot find ext2onlone or resize2fs... (1 Reply)
Discussion started by: verdepollo
1 Replies

10. SuSE

Convet Linux OS from text mode to graphic mode

Hi All, I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Discussion started by: s_linux
6 Replies
Login or Register to Ask a Question