?
Solved

Permissions on Directories

Posted on 1998-07-30
3
Medium Priority
?
255 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 200 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

777 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