• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1665
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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