Question about chmod and group priv's
If you are using chmod with the root user and you do a chmod g=wrx which grouo is it giving those permissions to?
Obviously there are more than just one group and I was wondering how to assign specific permissions per group. (like burning or audio... etc) |
It depends on which group owns the file.
for example: if group microsoft owns the file GETVISTA you would be changing permissions for that group on the file : >ls -al | grep GETVISTA -rw-r--r-- 1 billygates microsoft 0 2007-01-31 15:33 GETVISTA >whoami root >chmod g=wrx GETVISTA -rw-rwxr-- 1 billygates microsoft 0 2007-01-31 15:34 GETVISTA however if another group owns the file.. that group would have access. hope this helps. ease-e |
Hi,
I am having a little bit difficulty understanding second part of original question. If g=rwx, this means that the group of the file, (seen by ls -l) has that permission. And /etc/group defines which user belongs to what group. I do not think any group owns file, as suggested by #2 line 1. Happy Penguins! |
Quote:
|
You can use:
Code:
chown :group_here file_here Code:
chmod o-rwx file_here |
chgrp <newgroup> GETVISTA
and I think you took my words a little too literally the original creater owns the file (unless changed) .. the users in the group can have access to the file. Billy G for President. |
All times are GMT -5. The time now is 01:28 AM. |