O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.4. Changing permission bits

You can change the permission bits of files you own to whatever you feel comfortable with. You have to ask yourself which users need access to your files (and this also includes directories that you own). You can change the permission bits using the command chmod. This command can be used in a short way using the absolute mode or a long way using the symbolic mode. We’ll look at the symbolic mode first.

1.4.1. Symbolic mode

The general format of the chmod command is

chmod [who] operator [permissions] filename 

who means:

u The user permissions
g The group permissions
o The other permissions
a Means all (user, group and other)

operator means:

+ Add a permission
- Take away a permission
= Set permissions

permission ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required