Assigning *nix permissions on a user basis

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Durandal
Bile-Driven Hate Machine
Posts: 17927
Joined: 2002-07-03 06:26pm
Location: Silicon Valley, CA
Contact:

Assigning *nix permissions on a user basis

Post by Durandal »

I want to know if it's possible to assign permissions in a *nix on a user-by-user basis. Let's say I have a folder. I want User A to have rwx permissions to this folder, User B to have rw- permissions and User C to only have r-- permissions. I can't create a group, because everyone in that group will have the same permissions. I want some way to tell OS X to give Users A, B and C specific, distinct permissions. It would also be helpful is this was possible for groups, as well. By all indications, I don't think this is possible, but maybe someone can enlighten me.
Damien Sorresso

"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Unless your *nix varient and its filesystem supports ACLs, this is a no go. At this moment, I don't think MacOS X supports them.
Ligier
Padawan Learner
Posts: 190
Joined: 2003-06-30 04:24pm
Location: Toronto, Canada

Post by Ligier »

Durandal wrote:I want to know if it's possible to assign permissions in a *nix on a user-by-user basis.
I concur with phongn. Unless ACL's are supported, there's no proper way to assign permissions on a user-by-user basis. That leaves us with an ugly mess of group permission trickery...

Have User A own the folder, with "rwx" permissons. Assign User B to Group B, which has group ownership of the folder, and has "rw" permissions. Then, set the "other" permissions to "r."

Er, yeah, that's not what you wanted at all. :)
"Hell or plunder, comrades - March!"
-Conan, Black Colossus, Robert E. Howard
User avatar
Durandal
Bile-Driven Hate Machine
Posts: 17927
Joined: 2002-07-03 06:26pm
Location: Silicon Valley, CA
Contact:

Post by Durandal »

The problem is that that method isn't extensible beyond 3 users. :)
I guess I could just use separate directories or some other hodgepodge method. I thought that Windows was capable of doing this ...
Damien Sorresso

"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Windows NT, 2K, 2K3 and XP Pro are easily capable of doing this. I thought you were trying to do this on *nix?
User avatar
Durandal
Bile-Driven Hate Machine
Posts: 17927
Joined: 2002-07-03 06:26pm
Location: Silicon Valley, CA
Contact:

Post by Durandal »

phongn wrote:Windows NT, 2K, 2K3 and XP Pro are easily capable of doing this. I thought you were trying to do this on *nix?
I was just musing. Is this in any way possible with Samba 3.0? Or does it talk directly to the system for permissions?
Damien Sorresso

"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

AFAIK, it talks to the system.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Dual boot yellowdog with ACL patches. :wink: .

Can you patch darwin and still run MacOSX?

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Durandal
Bile-Driven Hate Machine
Posts: 17927
Joined: 2002-07-03 06:26pm
Location: Silicon Valley, CA
Contact:

Post by Durandal »

Pu-239 wrote:Can you patch darwin and still run MacOSX?
As far as I know, yes.
Damien Sorresso

"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
Post Reply