1837196 Members
2405 Online
110115 Solutions
New Discussion

not login

 
“nç²�VŒá
New Member

not login

HI !!
When executing the following commands by root, it becomes impossible for no user to have login and was now.
Please help someone.

Execution sentence
chmod 777 -r /usr
japanese gyy
10 REPLIES 10
Francois Bariselle_3
Regular Advisor

Re: not login

Hi,

Not good permissions or owner.

The permission should like root:root dr-xr-xr-x for /usr.

Check this.

Frank.
Fais la ...
Sandip Ghosh
Honored Contributor

Re: not login

Reboot in singleuser mode and try to change it back.

Sandip
Good Luck!!!
steven Burgess_2
Honored Contributor

Re: not login

Hi
drwxr-xr-x 22 root root 1024 Jan 11 2001 usr1

Steve
take your time and think things through
John Carr_2
Honored Contributor

Re: not login

Hi

-r is not right

chmod -R 777 /usr

-R is to do a recursive change on all files in /usr

john
Helen French
Honored Contributor

Re: not login

Hi,

Some points:

1) The /usr has system specific commands and tools in it. If you change the permission of /usr to 777, it is NOT a good step. You will have problems in future ( anybody can remove any files from that !)

2) If you are using 777, then you don't need to use '-r'. You have to specify either symbolic_mode_list(rwx) or numeric_mode_list(777).

3) The right permission of /usr should be:

dr-xr-xr-x bin bin /usr

HTH,
Shiju
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: not login

Hi


under /usr/bin there is a file called login file please change the owner of this file to as root and bin and also the permissions to

-r-s-r-xr-x ie
chmod 4555 /usr/bin/login ,

and you should be good to go , but dont change permissions like that .


Manoj Srivastava

Bill Hassell
Honored Contributor

Re: not login

If you used the command: chmod -R 777 /usr then you have pretty much destroyed the ability of the system to function. There are dozens of files that require suid or guid permissions that no longer function. And most important, 777 means that *nothing* is safe on your system...every file and directory in /usr is now vulnerable to corruption by anyone.

Time to restore vg00 from your Ignote/UX backup tape.


Bill Hassell, sysadmin
“nç²�VŒá
New Member

Re: not login

Reboot in singleuser mode Although carried out, the mount method of /usr should not be known and please let me know.
japanese gyy
John Carr_2
Honored Contributor

Re: not login

Hi

hope you have not done the chmod 777 I waas in too much of a hurry and didn't think before I suggested what was wrong with the command you was issuing rather than what you was trying to achieve.

my apologies if I have made your troubles worse.

John.
Sandip Ghosh
Honored Contributor

Re: not login

look for /usr in /etc/fstab.
cat /etc/fstab. It should be mentioned over there. Before doing anything take the backup of the system as soon as it comes up.
To mount all directories

vgchange -a y
mount -a

Sandip
Good Luck!!!