I have list of file with permission
-rw-r-----. I want modify this permission and give access to other. i.e
Without modifying current permission setting, just add permission to 'other' user.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
chmod o+rw yourfile
For other add (+) read and write permissions. I think it's quite semantically meaningful.
Alternatively, you could learn the numeric notation. R is worth 4, W is worth 2 and X is worth 1. If you want read and write, for example, you add 4 and 2 together giving 6.
So to keep the permissions the same for owner (6) and group (4) you could do:
chmod 646 yourfile