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 .....
kaka123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
Use

chmod 751 /

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kaka123Author Commented:
i have try that prior to listing the question But it stayed at 755  ls -la  ...
0
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
give me the output of this command

chmod 751 /.
echo $?
ls -lah /
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

omarfaridCommented:
When you run the command, do you run it as root? do you get error messages?
0
kaka123Author Commented:
# 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 ..
0
omarfaridCommented:
why you use the /. in your command?

Please run

chmod 751 /

can you post

ls -ld /
0
kaka123Author Commented:
# ls -ld /
drwxr-x--x  44 root     system      1536 Feb  5 19:44 /
0
omarfaridCommented:
So it changed !
0
kaka123Author Commented:
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 ...???
0
kaka123Author Commented:
# ls -ld /
drwxr-xr-x  44 root     system      1536 Feb  5 19:44 /
0
kaka123Author Commented:
ok !! My bad it is working it took a while but it is working again ...Thank you for your help ....
0
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
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.
0
omarfaridCommented:
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?
0
kaka123Author Commented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.