AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Allow user to delete file from another user

  • 1.  Allow user to delete file from another user

    Posted Mon February 20, 2012 04:46 AM

    Originally posted by: jpoly


    Hello, I have a problem with user authorizations.

    The server has AIX 5.3 (oslevel -r : 5300-12)

    I have different users : base, G, c, d which use different programs.
    I need that the user "base" can delete files created by other users (G, c, d)
    On Aix 5.2, I achieved with the group configuration, and it works.

    But with the same group authorizations, on Aix 5.3, it doesn't work

    Example :

    With 'G' user, i create a file in /tmp
    > touch essaiG
    > ls -l essaiG
    > -rw-r--r-- 1 G staff 0 20 fév 10:40 essaiG
    > chmod 777 essaiG
    > -rwxrwxrwx 1 G staff 0 20 fév 10:40 essaiG

    Now with 'base' user, i try to delete this file
    > rm essaiG
    > rm: Suppression de essaiG ?o
    > rm: 0653-609 Impossible de supprimer essaiG.

    Can you please give me some help ?


  • 2.  Re: Allow user to delete file from another user

    Posted Mon February 20, 2012 05:03 AM

    Originally posted by: jpoly


    Sorry, I find the solution
    I just notice the "sticky bit". sorry.

    The solution :
    as root :
    cd /
    chmod -R 2777 /tmp

    And now 'base' can delete 'G' files