LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-19-2004, 01:42 PM   #1
gen-ik
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Trouble understanding chmod & group permissions


I have now read many tutorials about Linux user and group administration, but I still don't completely understand the group permissions. For example, I can give a group write rights by

Code:
chmod g+w [filename]
but what I don't understand is:

- to which group does it apply?
- can I specify one specific group or does it apply to all groups (that wouldn't make any sense, would it)?
- how do I give a specific group a right to create new directories under a specific directory?
 
Old 07-19-2004, 01:46 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
Code:
ll t.lis
-rw-r--r--   1 jmcnama    prog         12014 Jul 16 15:40 t.lis
jmcnama is the owner
prog is the group

You're changing the access for whatever group the owner of the file belongs to.
 
Old 07-19-2004, 01:49 PM   #3
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
You can change the group of the file as well, if you want the file to be accessible to a group that is different from the one the owenr belongs to.

Code:
chgrp bin t.lis
and now the "bin" group has group access.
 
Old 07-19-2004, 01:51 PM   #4
gen-ik
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jim mcnamara
Code:
ll t.lis
-rw-r--r--   1 jmcnama    prog         12014 Jul 16 15:40 t.lis
jmcnama is the owner
prog is the group

You're changing the access for whatever group the owner of the file belongs to.
So for example if I want to give access to the group "squid" to a directory "cache" and all its subdirectories I have to do

Code:
chown -R squid cache
chmod g+rwx cache
? And root still has all access rights to everything no matter what I do?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am having trouble understanding IRQ DMA I/O ports Paxmaster Linux - General 1 06-11-2005 08:41 PM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 03:27 PM
Having Trouble Understanding/Configuring Wine cajunaggie Linux - Software 5 10-28-2004 02:27 PM
Understanding permissions - from a Windows user's perspective floydian219 Linux - Newbie 12 09-07-2004 08:10 AM
chmod for a group on a certain directory? mfeoli Linux - Newbie 1 02-10-2004 05:13 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration