Solved

Permissions on Directories

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.
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.

730 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