Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1660
  • Last Modified:

Give Directory write permissions to a specific user

Hi
OS: RHEL 5.2
I want to give write permission to a user(say user1) on a directory which is owned by some other user(say user2). At the end user1 and user2 will have the write permission on the directory.
I know this can accomplished by using group permissions..., I don't want to touch anything reg group because group should only have rand exec permissions.
I am from solaris background and I know in solaris it can be achieved by ACL's, but not sure what to use in RHEL redhat linux.
Please advise.
Thanks in advance.
0
vmwarecv1
Asked:
vmwarecv1
1 Solution
 
Morne LateganCommented:
With the right filesystem acl's work in Linux as well. If its ext3, edit /etc/fstab and enable acl in the filesystem, e.g.:

LABEL=/home             /home                   ext3    rw,acl          1 2

then mount -o remount /home, or reboot

Then use: getfacl and setfacl to get and set the acl's
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now