Solved

Solaris 10 file permissions

Posted on 2012-03-14
6
379 Views
Last Modified: 2012-03-14
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
Comment
Question by:wilkescc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 37721930
chmod 2745 Dirname
0
 

Author Comment

by:wilkescc
ID: 37721952
I just tried chmod 2745 and now my permissions are drwxr-s---
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 37721961
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
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!

 

Author Comment

by:wilkescc
ID: 37721989
Now the permissions are drwxr--r-x
0
 

Author Comment

by:wilkescc
ID: 37722034
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
 

Author Closing Comment

by:wilkescc
ID: 37722475
Got it to work!

Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question