Permissions, Groups & Owners

jkazules

Registered
I've read alot on this great site I found tonight about permissions. I still have some questions. I downloaded BatChmod but I want to know:

Can there be more than one owner? group? assigned to a file/folder at once?

How do I create groups and add users to groups?

I want to be able to get into a second users files without having to drastically change the default permissions. Even though I am admin it doesn't work and I would like to avoid logging in as root if possible.
 
The answer to your first question is No. And for your 2nd question, do those things using NetInfo Manager. But only if you know what you're doing. One wrong step and you can hose your whole system.
 
you can indeed hose your system if you screw up in netinfo. but if you back up your netinfo dBs, then you should be just fine. a little reboot to single user mode, and you re golden
 
There is only one owner.
The group is the owner's PRIMARY group.
You can create a group with these two commands:

niutil -create / /groups/[groupname]
niutil -createprop / /groups/[groupname] gid [gid]

Delete a group:

niutil -destroy / /groups/[groupname]
 
Back
Top