Solved

Solaris 10 file permissions

Posted on 2012-03-14
6
364 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
  • 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now