Give Directory write permissions to a specific user

Posted on 2009-02-18
Last Modified: 2013-12-16
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.
Question by:vmwarecv1
    1 Comment
    LVL 7

    Accepted Solution

    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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now