[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 385
  • Last Modified:

Solaris 10 file permissions

I have a solaris directory with the following permissions drwsrwx--- that I need to change to these permissions  drwxr-Sr-x  Can someone give me the chmod string that I need to make the change? Thanks!
0
wilkescc
Asked:
wilkescc
  • 4
  • 2
1 Solution
 
farzanjCommented:
chmod 2745 Dirname
0
 
wilkesccAuthor Commented:
I just tried chmod 2745 and now my permissions are drwxr-s---
0
 
farzanjCommented:
Well, I am pretty sure that should not have happened.  However, I can tell you another way.

Now you do this
chmod g-x,o+rx Dirname

Open in new window


See how this works out.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
wilkesccAuthor Commented:
Now the permissions are drwxr--r-x
0
 
wilkesccAuthor Commented:
Let me explain more of what I need to do. I need to rename an existing directory that has permissions of  drwxr-Sr-x

Then I need to create a new directory to replace the one I renamed and set the permissions to match the one I renamed.

When I create the new directory it has permissions of drwxrws---

I need the permissions to be drwxr-Sr-x
0
 
wilkesccAuthor Commented:
Got it to work!

Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now