Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

up vote 2 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
add comment

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

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

share|improve this answer
8  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.