Jump to content


Directory permission in linux


  • Please log in to reply
5 replies to this topic

#1 namee

namee

    VMWare Expert

  • Members
  • PipPipPipPip
  • 727 posts
  • Gender:Male
  • Location:inside 0 & 1

Posted 16 September 2008 - 11:15 PM

Hello there,
Please give me solution for this....

Configure a cross-functional group of users: avionics, vendor, seats, and galleys. Set them up as a group named pcplane. Create a /home/pcplane directory and allow them to share files without having to change permissions or ownership on any file they put in this directory. Do not give vendor read privileges on this directory

Specially I can't do red mark one. I just need that part solution particularly.

thanks in advance
namee


p.s.: sorry to post it again in this forum as well as rhce section...

#2 Rapid Uploader

Rapid Uploader

    Newbie

  • Members
  • Pip
  • 29 posts

Posted 17 September 2008 - 12:26 AM

Try to use linux ACL command

setafcl -m group:avionics:r--,group:seats:r--,group:galleys:r-- /home/pcplane

you can use -R for recursive.

In this case you don't have to use pcplane group or you may create another group which excludes vendor group.

Is this what you want?

#3 namee

namee

    VMWare Expert

  • Members
  • PipPipPipPip
  • 727 posts
  • Gender:Male
  • Location:inside 0 & 1

Posted 17 September 2008 - 12:37 AM

well .. all users are belong to group pcplane..... and should use this group for set permission except one user in group... but you can't ridoff that user from group.

i'm not sure but as i know setfacl is only for files not for directory... but not sure.

thanks
namee

#4 Rapid Uploader

Rapid Uploader

    Newbie

  • Members
  • Pip
  • 29 posts

Posted 17 September 2008 - 12:55 AM

Well, it works here.

# mkdir /test
# chmod 700 /test
# getfacl /test
# file: test
# owner: root
# group: root
user::rwx
group::---
other::---
# su rapid
$ cd /test
-bash: cd: test/: Permission denied
$ exit
# setfacl -m group:rapid:r-x /test
# getfacl /test
# file: test
# owner: root
# group: root
user::rwx
group::---
group:rapid:r-x
mask::r-x
other::---
# su rapid
$ cd /test

able to get into the dir and list the dir content.

You could try it on your system if you want to.

#5 namee

namee

    VMWare Expert

  • Members
  • PipPipPipPip
  • 727 posts
  • Gender:Male
  • Location:inside 0 & 1

Posted 17 September 2008 - 01:47 AM

thanks buddy, i will try it and let you know.... hopefully it will work for me as well.....

thanks again for help
namee

#6 Vorlon

Vorlon

    Super Member

  • Veterans
  • PipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:España - Spain

Posted 17 September 2008 - 06:48 PM

Moving





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users