kaka123
asked on
on solaris 9 how can i change the permession of / from 755 to 751
hi ,
Can some one pleae tell me if this can be done .I don't know how to do this i need to change the permessions of / to duplicate a problem .I need to set the / permessions to 751 if it is all possible .Please let me know how can i acomplish this .
Thank you for your help .....
Can some one pleae tell me if this can be done .I don't know how to do this i need to change the permessions of / to duplicate a problem .I need to set the / permessions to 751 if it is all possible .Please let me know how can i acomplish this .
Thank you for your help .....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
give me the output of this command
chmod 751 /.
echo $?
ls -lah /
chmod 751 /.
echo $?
ls -lah /
When you run the command, do you run it as root? do you get error messages?
ASKER
# chmod 751 /.
# echo $?
0
# ls -lah /
total 1752
drwxr-x--x 44 root system 1.5K Feb 5 19:44 .
drwxr-x--x 44 root system 1.5K Feb 5 19:44 ..
# echo $?
0
# ls -lah /
total 1752
drwxr-x--x 44 root system 1.5K Feb 5 19:44 .
drwxr-x--x 44 root system 1.5K Feb 5 19:44 ..
why you use the /. in your command?
Please run
chmod 751 /
can you post
ls -ld /
Please run
chmod 751 /
can you post
ls -ld /
ASKER
# ls -ld /
drwxr-x--x 44 root system 1536 Feb 5 19:44 /
drwxr-x--x 44 root system 1536 Feb 5 19:44 /
So it changed !
ASKER
yes! it did now i chnaged it back to 755 and i am unable to login ...The reason we did this when the / is set to 751 no one can login to the server but root .Now that i changed it back to 755 i am still not able to login ..the ssh to the server and the type the login credentials and the screen goes away ...???
ASKER
# ls -ld /
drwxr-xr-x 44 root system 1536 Feb 5 19:44 /
drwxr-xr-x 44 root system 1536 Feb 5 19:44 /
ASKER
ok !! My bad it is working it took a while but it is working again ...Thank you for your help ....
omarfarid: I thougt "/." refers to the actual root directory where "/" refers to the "root" of the filesystem..
might be something i misunderstood.. but according to his output the command worked.
might be something i misunderstood.. but according to his output the command worked.
Of course when you change it to 751 no one will be able to login since login processes after changing the ownership of login processes it can not access necessary info for users.
But why when you changed it back to 755 you can not login?
But why when you changed it back to 755 you can not login?
ASKER
this is what it does if the / is set to 751 it will not let you login ..But when i changed back it took few minutes but it is working now ...thanks
ASKER