Click to See Complete Forum and Search --> : Help me about user rights


hello
05-02-2003, 09:50 PM
Hi,
I am not sure this is the right thread for me. I am Windows NT server user. I have installed linux redhat 7.3 for file server. But I have difficulties in giving user rights. Following is the scenero that I want to implement but I do not know how to give rights.
I have three catagories of users
first catagory users : A, B, C, D....
second catagory users : a, b, c, d...
third catagory users: 1, 2, 3, 4, ....

I have two folders, lets say folder 'shareA' and 'shareB'

I want to give 1 catagory user read only access to 'shareA'
and 2nd catagory user can read and write to 'shareA', for others they do not have any rights

For 'shareB' I want to give read and write access to 1 & 2 catagories users.

Third catagory users own both folder.
Please help me. In windows NT I can give individual folder rights to individual users with different rights.

Thanks in advance for your help.
Best regards

JohnT
05-02-2003, 10:32 PM
Rights= Permissions (Linux)

Getting Access to Documentation Under Linux
The man Command

The most powerful and useful command available is 'man' (manual). In its simplest form, one simply types 'man' and then the name of the man page.

http://www.linuxplanet.com/linuxplanet/tutorials/207/2/

myshkin
05-02-2003, 11:06 PM
..........:p

hello, maybe chmod is what you are looking for? chmod xyz. x for owner, y for group, and z for global. replace them with numerals from i think 0-7? cant remember all of them but, the common ones i use are 7 for read, write and executable. 6 for read and write. 0 for no permission.


speaking of the man command. i was in school last week fiddleling with an ultrasparc computer which has solaris8 installed. did a man on some commands but the page refuses to load completely. says it needs to format the page but was stuck on 5%. :confused:

hello
05-02-2003, 11:28 PM
Thanks for your replies. But it is not the answer that I wanted. I know the commands. chmod, chgrp and chown. I have already to use it to give rights. I want to know how to give two to three groups of people with different access rights for the same folder.

stiles
05-03-2003, 12:24 AM
Yea your right you need more than unix permissions, I think setting a group acl will take care of your situation. I got to run, but I'll be back. Try searching the man pages for acl (man -k acl). Acl support in ext2/3 is pretty new so you may be out of luck on your install of RH 7.3 (I don't use RH so this is just me speculating).

stiles
05-03-2003, 02:02 AM
Here (http://sourceforge.net/projects/linux-acl/) is the linux-acl page.

Lets look at the output of getfacl first:

getfacl test
# file: test
# owner: root
# group: root
user::rw-
group::r--
other::r--


here is an example of using setfacl to add read and execute permission for group staff

setfacl -m g:staff:rx test

now look at the output of getfacl:

getfacl test
# file: test
# owner: root
# group: root
user::rw-
group::r--
group:staff:r-x
mask::r-x
other::r--

That should get you started if our install supports acl's

hello
05-03-2003, 05:53 AM
Dear stiles
Thanks for pointing me to the right idea and solution . But it is too bad that it does not support kernel less than 2.5. Do you have any other work around?
Best regards
Hello

stiles
05-03-2003, 06:02 PM
there are patches (http://216.239.53.104/search?q=cache:bUOLCpTwphMC:acl.bestbits.at/download.html+acl+linux+ext2+patch+2.4&hl=en&ie=UTF-8) agains 2.4.x for extended attributes/acl's with ext2/3 but for some damn reason the site is down (http://acl.bestbits.at/). There is an email at the bottom of the google cache page, maybe Andreas Grünbacher knows of a mirror that is available, or can help you out some other way. If you do get the files you need check out this (http://216.239.53.104/search?q=cache:m2-J6QkruvYC:acl.bestbits.at/steps.html+&hl=en&ie=UTF-8).

hello
05-04-2003, 07:11 AM
Thanks a lot stiles. I really really appreciate your help. The site is up again. I will try it out.
Best regards
Hello