Solved

Permissions on Directories

Posted on 1998-07-30
3
250 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

708 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

19 Experts available now in Live!

Get 1:1 Help Now