Solved

CHMOD file attributes

Posted on 2004-09-23
2
338 Views
Last Modified: 2010-05-18
I have a file that I would like to do the following to.  
Allow the owner to read
Allow the owner to write
Allow the owners group to read.  

Would it be chmod 640 file.txt  

Owner to read  400
Owner to write  200
Owners group to read  040
Rest of world do do nothing  

Add these together and one obtains 640.  
The question is first of all is this the correct syntax and if I want to give no permissions to everyone else
is this 0?  

0
Comment
Question by:plate55
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
griessh earned 125 total points
ID: 12135039
Hi plate55,

chmod 460 does what you want. There are different ways to use the chmod command. In case of any problems do a 'man chmod' and you will see all the options.

======
Werner
0
 
LVL 11

Expert Comment

by:griessh
ID: 12135045
Sorry
460 sould be 640
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.

808 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