Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION Manual de usuario Pagina 262

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 300
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 261
250 You Are Here
w write access
x execute access
Actions
+ adds the permission
- removes the permission
= makes it the only permission
Want to test it out? Lets remove all permission from sneakers.txt for everyone.
chmod a-rw sneakers.txt
Now, lets see if we can read the le:
[billy@localhost billy]$ cat sneakers.txt
cat: sneakers.txt: Permission denied
[billy@localhost billy]$
Guess it worked; even we cant get into the le. But since the le belongs to us, we can always change
permission to allow us read and write access. (See Figure 16.19)
[billy@localhost billy]$ chmod u+rw sneakers.txt
[billy@localhost billy]$ cat sneakers.txt
buy some sneakers
then go to the coffee shop
then buy some coffee
bring the coffee home
take off shoes
put on sneakers
make some coffee
relax!
[billy@localhost billy]$
Here are some common examples of settings that can be used with chmod:
g+w adds write access for the group
o-rwx removes all permissions for others
Vista de pagina 261
1 2 ... 257 258 259 260 261 262 263 264 265 266 267 ... 299 300

Comentarios a estos manuales

Sin comentarios