Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't want to remember codes like 777 all the time . is there any intuitive way to chnage file permission

Suppose i want to have

user --rwx
group --rx
others x

how can i write this way like

chmod ugo +rwxrxx

I don't want to keep previous permissions

share|improve this question
up vote 3 down vote accepted

Since you don't want to keep the old permissions, use this:

chmod u=rwx,g=rx,o=x FILE
share|improve this answer

You should read man page for chmod. There is example:

chmod u+rwx,g+rx-w,o+x-rw filename

share|improve this answer
9  
He didn't want to keep previous permissions, so chmod u=rwx,g=rx,o=x is better. – Teddy May 27 '11 at 7:32
    
@Teddy , thanks i like ur solution , i didn't knew i can use = – Moorage May 27 '11 at 7:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .