mintCast Episode 21: File Permissions
Ontario [GNU] Linux Fest
The third annual Ontario [GNU] Linux Fest, sponsored by Google and IBM, will be held on Saturday, October 24, 2009 at the Days Hotel and Conference Centre Toronto Airport East in Toronto, Ontario, Canada.
The Ontario Linux Fest is a non-profit event that brings together professionals, students, and enthusiasts who share an interest in Linux and Open Source software.
Joe ‘Zonker’ Brockmeier, long time FOSS advocate and openSUSE community manager, is the keynote speaker.
Last year 300 people attended, from as far away as Brazil.
Visit the website at http://www.onlinux.ca, sign-up for the mailing list, or follow on Twitter at @OntarioLinux.
In this episode
chown [-R] [[user]][:group] target1 [[target2 ..]]
chmod [options] mode[,mode] file1 [file2 …]
chgrp group target1 [target2 ..]
|u||user||the owner of the file|
|g||group||users who are members of the file’s group|
|o||others||users who are not the owner of the file or members of the group|
|a||all||all three of the above, is the same as ugo|
|+||adds the specified modes to the specified classes|
|–||removes the specified modes from the specified classes|
|=||the modes specified are to be made the exact modes for the specified classes|
|r||read||read a file or list a directory’s contents|
|w||write||write to a file or directory|
|x||execute||execute a file or recurse a directory tree|
|X||special execute||which is not a permission in itself but rather can be used instead of x. It applies execute permissions to directories regardless of their current permissions and applies execute permissions to a file which already has at least 1 execute permission bit already set (either user, group or other). It is only really useful when used with ‘+’ and usually in combination with the -R option for giving group or other access to a big directory tree without setting execute permission on normal files (such as text files), which would normally happen if you just used “chmod -R a+rx .”, whereas with ‘X’ you can do “chmod -R a+rX .” instead|
|s||setuid/gid||details in Special modes section|
|t||sticky||details in Special modes section|
Web site of the week
Hosts: Charles, Rothgar
Subscribe to the podcast: [iTunes] [Zune] [RSS MP3] [RSS OGG]
Twitter: @mintCast @Rothgar @Linux_Mint
More info: Linux Mint website, blog, forums