
22
The third column is the owner of the file, in this case root.
The fourth column is the group of the file, in this case the root group.
The fifth column is the size of the file.
The sixth is the time the file was last modified
The seventh is naturally the name of the file.
Changing Permissions
there are three command that you need to learn.
chmod /*change the ppermissions of a file*/
chown /*change the owner of the file*/
chgrp /*change the group that the file belongs to*/
example:
chmod 777 somefile.file /*this gives exe write and read to all */ not recommended for any
file.
for chmod here is a list of the numbers and what they meen
the 100's are for the owner of the file
400 reed
200 write
100 execute
10's are for the group of the file
40 read
20 write
10 execute
1's are for everyone else
4 read
2 write
1 execute
you add the number together to get different permissions
To change multiple files, you can use chmod –R for an entire directory, or use wildcards like
chmod 755 *.txt.
Kommentare zu diesen Handbüchern