Find the answer to your Linux question:
Results 1 to 2 of 2
Hello I want to build schema: 4 users: user1, user2, user3, user4. 4 folders: bank1, bank2, bank3, bank4. I want to label users and folders that user1 has access only ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7

    [SELINUX] Organisation schema

    Hello

    I want to build schema:

    4 users: user1, user2, user3, user4.

    4 folders: bank1, bank2, bank3, bank4.

    I want to label users and folders that user1 has access only to folder bank1, user2 has access only to folder bank2 etc. How to do that in SeLinux? Could be polgengui useful?

  2. #2
    Just Joined!
    Join Date
    Nov 2004
    Posts
    3
    1. login as root:
    su

    2. Enter the following commands to create a directory for each bank.

    mkdir -p /banks/bank1
    mkdir -p /banks/bank2
    mkdir -p /banks/bank3
    mkdir -p /banks/bank4

    3. Go to each users home directory. Using the following command

    cd /home/user1

    4. Enter the following command to create a symbolic link to the bank diretory that you created above

    ln -s /banks/bank1 bank1
    chown -R user1:user1 bank1

    There should be a directory new directory called bank1 in the home direcory. The created vi the
    first command above. It has created a symbolic link to the /banks/bank1 direcory.
    The second command now changes the ownership of that directory to the users directory to prevent anyone from changing the contents in the directory.

    Repeat steps 3 thru 4 for the other users.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...