LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   home directory under a home directory (https://www.linuxquestions.org/questions/linux-general-1/home-directory-under-a-home-directory-53121/)

GEEXTER 04-02-2003 06:48 PM

home directory under a home directory
 
I'm trying to create a home directory under a home directory.
Is it possible?


Example:

LOGIN AS ROOT

existing directory: /home/qp

mkdir /home/qp/gess

useradd gess -d /home/qp/gess -p password

chown gess /home/qp/gess

chmod 775 /home/qp/gess


...then when I log in as gess it says I do not have permission to access /home/qp/gess.

Any clues?

MasterC 04-02-2003 06:51 PM

If they have "x" attribute on all above directories, then yes. Make sure you just give it X on the directory, so:
chmod a+x /home/qp
would add that attribute, then give the user permission to access that directory, and in turn, access the home directory within it.

AFAIK

Cool

GEEXTER 04-02-2003 08:00 PM

Thank you so much. It worked perfectly, MasterC.

MasterC 04-03-2003 08:34 AM

Cool, you're welcome. :)

Cool

tcaptain 04-03-2003 09:17 AM

Question (Out of curiosity): Why would you want to do this?


All times are GMT -5. The time now is 04:15 PM.