AIX

AIX

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


#Power
 View Only
  • 1.  How do we deny an user from creating files & directory in his home dir.,?

    Posted Wed May 02, 2012 05:52 AM

    Originally posted by: shibhikkiran


    Hello,

    I'm a beginner in AIX and practicing for last couple of months.
    The regular user in AIX can have privilege to create files and directories in his home directory. (i.e /home/$user). But, he can't have that other than his home directory.
    But, If I wish to deny him from creating files and directories in his home directory. Then, How can do it?

    Expecting your valuable response!

    Regards,
    kiran
    #AIX-Forum


  • 2.  Re: How do we deny an user from creating files & directory in his home dir.,?

    Posted Wed May 02, 2012 12:31 PM

    Originally posted by: orphy


    That's not difficult to do but can you explain why you want to do this? There may be a better solution for what you try to accomplish.
    Orphy
    #AIX-Forum


  • 3.  Re: How do we deny an user from creating files & directory in his home dir.,?

    Posted Fri May 04, 2012 07:44 AM

    Originally posted by: Tibor_B


    his home directory might be owned by other user, and rights could be set so that the user was not authorized to write into directory....
    #AIX-Forum


  • 4.  Re: How do we deny an user from creating files & directory in his home dir.,?

    Posted Fri May 04, 2012 09:16 AM

    Originally posted by: orphy


    You don't typically have multiple logins using the same home directory but if that's a business requirement, then you are going to change the ownership of that directory and possible file(s) within the directory to properly allow/disallow access. One can also look into restricted shell or setting up ACL. There are a few possible ways to this issue but without knowing the exact requirement from the original poster, I'm afraid any proposed solution might not be a good one...
    Orphy
    #AIX-Forum