The chmod Command
Chmod also provides a few command line options to simplify administrative tasks. For changing file permissions in directory trees use -R.
$ chmod -R g-w test_dir
This would remove write permission for group for all of the files in and below test_dir.
In order to control the output of messages from chmod use -c, -v and -f:
$ chmod -v 700 test_file mode of test_file changed to 0700 (rwx------)
This option caused chmod to display how the permissions of test_file were set. The -c option causes chmod to display messages only when files are changed, and the -f option suppresses messages about files that can't be changed.
Chmod also provides a --version option to display the version and --help to see a short help message.
File permissions are an integral part of Linux. The same concepts also apply to other operating system objects such as semaphores, shared memory, and NIS+. This tutorial provides you with some of the basic knowledge necessary to protect your data and have more fun with your Linux system, and provides you with mental building blocks for learning more about Linux.
Eric Goebelbecker (firstname.lastname@example.org) is a systems analyst for Reuters America, Inc. He supports clients (mostly financial institutions) who use market data retrieval and manipulation APIs in trading rooms and back office operations. In his spare time (about 15 minutes a week...), he reads about philosophy and hacks around with Linux.
- Readers' Choice Awards 2013
- Mars Needs Women
- RSS Feeds
- Sublime Text: One Editor to Rule Them All?
- Raspberry Pi: the Perfect Home Server
- December 2013 Issue of Linux Journal: Readers' Choice
- IBM Will Minimize Impact of Future Disasters
- Tech Tip: Really Simple HTTP Server with Python
- Linux Systems Administrator
- Senior Perl Developer
- This should be very helpful
41 min 44 sec ago
- As much as I share your point
3 hours 1 min ago
- So girls had it better ?
6 hours 33 min ago
- Reply to comment | Linux Journal
6 hours 53 min ago
- why is GNOME 3 in the fifth position at 14.1 %?
12 hours 25 min ago
- Sublime Is Brilliant!
17 hours 28 min ago
17 hours 47 min ago
- Rapid[Disk,Cache] better than native ram caching?
18 hours 12 min ago
- Nothing is perfect
18 hours 26 min ago
- Mixtapes Community
1 day 5 min ago