Solved

Permissions on Directories

Posted on 1998-07-30
3
254 Views
Last Modified: 2013-12-27
How would I set the permissions on a directory/file from the command line on a Sun Solaris 2.5 station ?
i.e. Changing the permissions from drwxr-xr-x to drwxrwxrwx.  Logging in as root or any Super user......

Thanks
0
Comment
Question by:mpellowe
[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
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2009174
man chmod
chmod go+w
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2009175
And the pure UNIXish way:
  chmod 777
0
 
LVL 1

Accepted Solution

by:
bryanjones earned 50 total points
ID: 2009176
If you are creating a new directory and want to keep it drwxrwxrwx then in your .profile ( that is if you use Korn shell or Bourne Shell, KORN the chosen shell of admins.), place umask 022 this will at least get you the following drw-rw-rw-.  If you need to change a file that already exists use the chmod command as follows;

chmod 777 <filename> (for the rwxrwxrwx)
4 = r
2 = w        to get the appropriate settings add the number together for what you want
1 = x
---------
7 = rwx

d rwx rwx rwx
    |       |      |
  owner |      |
         group |
                 world

or the other way to make the information correct is to chmod <ugo>+/-(rwx)
0

Featured Post

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!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

705 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